]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/yadif_common.c
avfilter/vf_ssim: remove unnecessary check
[ffmpeg] / libavfilter / yadif_common.c
index 8c20e22af97ad04e1fb3f0e3829ab0ed2e6dfbf3..a10cf7a17fd8a6efe1844940092e1cee01f3de71 100644 (file)
@@ -69,7 +69,7 @@ static int return_frame(AVFilterContext *ctx, int is_second)
 static int checkstride(YADIFContext *yadif, const AVFrame *a, const AVFrame *b)
 {
     int i;
-    for (i = 0; i < yadif->nb_components; i++)
+    for (i = 0; i < yadif->csp->nb_components; i++)
         if (a->linesize[i] != b->linesize[i])
             return 1;
     return 0;