]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/indeo3: add support for more dimensions
authorPaul B Mahol <onemda@gmail.com>
Sun, 14 Feb 2021 18:14:45 +0000 (19:14 +0100)
committerPaul B Mahol <onemda@gmail.com>
Fri, 19 Feb 2021 20:15:08 +0000 (21:15 +0100)
Fixes #6581

libavcodec/indeo3.c

index 75113a75419d648860fbc442ef9dae89e3859276..5257d983c2a28f3080a69dbec0ba8de60fdf5277 100644 (file)
@@ -171,7 +171,7 @@ static av_cold int allocate_frame_buffers(Indeo3DecodeContext *ctx,
 
     if (luma_width  < 16 || luma_width  > 640 ||
         luma_height < 16 || luma_height > 480 ||
-        luma_width  &  3 || luma_height &   3) {
+        luma_width  &  1 || luma_height &   1) {
         av_log(avctx, AV_LOG_ERROR, "Invalid picture dimensions: %d x %d!\n",
                luma_width, luma_height);
         return AVERROR_INVALIDDATA;