avfilter/vf_identity: remove unnecessary check

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
pull/362/head
Limin Wang 4 years ago
parent 8410000f17
commit d150a9eb44
  1. 2
      libavfilter/vf_identity.c

@ -296,7 +296,7 @@ static int config_input_ref(AVFilterLink *inlink)
if (!s->scores) if (!s->scores)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
for (int t = 0; t < s->nb_threads && s->scores; t++) { for (int t = 0; t < s->nb_threads; t++) {
s->scores[t] = av_calloc(s->nb_components, sizeof(*s->scores[0])); s->scores[t] = av_calloc(s->nb_components, sizeof(*s->scores[0]));
if (!s->scores[t]) if (!s->scores[t])
return AVERROR(ENOMEM); return AVERROR(ENOMEM);

Loading…
Cancel
Save