diff mbox series

[FFmpeg-devel,2/4] avfilter/vf_psnr: remove unnecessary check

Message ID 1619700601-9307-2-git-send-email-lance.lmwang@gmail.com
State Accepted
Commit 8410000f178134a7123b869b799f1a907c0028bf
Headers show
Series [FFmpeg-devel,1/4] avfilter/vf_ssim: remove unnecessary check | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Lance Wang April 29, 2021, 12:49 p.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 libavfilter/vf_psnr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavfilter/vf_psnr.c b/libavfilter/vf_psnr.c
index 7117e26..e5459d3 100644
--- a/libavfilter/vf_psnr.c
+++ b/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);