]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_lut.c
Merge commit '71bf6b41d974229a06921806c333ce98566a5d8a'
[ffmpeg] / libavfilter / vf_lut.c
index 68320d0b41e38909e69d90eeaee905fd1c38cd85..d2fd4a14bf546fb3f64b7867034d0ad48bda76fc 100644 (file)
@@ -304,7 +304,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
         }
     } else {
         /* planar */
-        for (plane = 0; plane < 4 && in->data[plane]; plane++) {
+        for (plane = 0; plane < 4 && in->data[plane] && in->linesize[plane]; plane++) {
             int vsub = plane == 1 || plane == 2 ? s->vsub : 0;
             int hsub = plane == 1 || plane == 2 ? s->hsub : 0;
             int h = FF_CEIL_RSHIFT(inlink->h, vsub);