avcodec/indeo3: add support for more dimensions

Fixes #6581
This commit is contained in:
Paul B Mahol 2021-02-14 19:14:45 +01:00
parent d52ceed9fd
commit 59dd702990
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ static av_cold int allocate_frame_buffers(Indeo3DecodeContext *ctx,
if (luma_width < 16 || luma_width > 640 || if (luma_width < 16 || luma_width > 640 ||
luma_height < 16 || luma_height > 480 || 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", av_log(avctx, AV_LOG_ERROR, "Invalid picture dimensions: %d x %d!\n",
luma_width, luma_height); luma_width, luma_height);
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;