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

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


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Sat Mar 13 10:36:04 2021 +0800| [d150a9eb444e672e0109b3ea1a04cf34522da51e] | committer: Limin Wang

avfilter/vf_identity: remove unnecessary check

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

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

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

diff --git a/libavfilter/vf_identity.c b/libavfilter/vf_identity.c
index 4e0a44d518..c81c40a640 100644
--- a/libavfilter/vf_identity.c
+++ b/libavfilter/vf_identity.c
@@ -296,7 +296,7 @@ static int config_input_ref(AVFilterLink *inlink)
     if (!s->scores)
         return AVERROR(ENOMEM);
 
-    for (int t = 0; t < s->nb_threads && s->scores; t++) {
+    for (int t = 0; t < s->nb_threads; t++) {
         s->scores[t] = av_calloc(s->nb_components, sizeof(*s->scores[0]));
         if (!s->scores[t])
             return AVERROR(ENOMEM);



More information about the ffmpeg-cvslog mailing list