[FFmpeg-cvslog] avfilter/vf_psnr: remove unnecessary check

Limin Wang git at videolan.org
Sat May 1 03:50:14 EEST 2021


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Sat Mar 13 10:35:02 2021 +0800| [8410000f178134a7123b869b799f1a907c0028bf] | committer: Limin Wang

avfilter/vf_psnr: remove unnecessary check

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8410000f178134a7123b869b799f1a907c0028bf
---

 libavfilter/vf_psnr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_psnr.c b/libavfilter/vf_psnr.c
index 7117e26dce..e5459d3f34 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);



More information about the ffmpeg-cvslog mailing list