forked from FFmpeg/FFmpeg
avfilter/vf_psnr: remove unnecessary check
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
fd3dabe68e
commit
8410000f17
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue