1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avfilter/vf_psnr: remove unnecessary check

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
Limin Wang 2021-03-13 10:35:02 +08:00
parent fd3dabe68e
commit 8410000f17

View File

@ -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);