[FFmpeg-devel] [PATCH] avcodec/indeo3: add support for more dimensions

Paul B Mahol onemda at gmail.com
Sun Feb 14 20:15:37 EET 2021


Fixes #6581

Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavcodec/indeo3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c
index 75113a7541..5257d983c2 100644
--- a/libavcodec/indeo3.c
+++ b/libavcodec/indeo3.c
@@ -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;
-- 
2.17.1



More information about the ffmpeg-devel mailing list