]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_identity.c
avfilter/vf_identity: remove unnecessary check
[ffmpeg] / libavfilter / vf_identity.c
index 4e0a44d51827342febf875ffada35a8196468f03..c81c40a6405d5988cd7ed44c07ad35126d50c41c 100644 (file)
@@ -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);