avfilter/vf_psnr: remove unnecessary check

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

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

Loading…
Cancel
Save