diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-02-03 20:11:56 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-02-12 00:50:47 +0100 |
commit | 3be80ce299d0073118ae42f5d99c14f912751d93 (patch) | |
tree | ceb0d968e2c47605b31fe264c53b56781e85770a /libavcodec/indeo3.c | |
parent | f465badb062c8023bc245f4878e7a6a082afc416 (diff) |
avcodec/indeo3: Round dimensions up in allocate_frame_buffers()
Fixes: Ticket6581
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/indeo3.c')
-rw-r--r-- | libavcodec/indeo3.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c index 5f1014f0d4..7bb0235bdb 100644 --- a/libavcodec/indeo3.c +++ b/libavcodec/indeo3.c @@ -171,6 +171,9 @@ static av_cold int allocate_frame_buffers(Indeo3DecodeContext *ctx, int luma_size, chroma_size; ptrdiff_t luma_pitch, chroma_pitch; + luma_width = FFALIGN(luma_width , 2); + luma_height = FFALIGN(luma_height, 2); + if (luma_width < 16 || luma_width > 640 || luma_height < 16 || luma_height > 480 || luma_width & 1 || luma_height & 1) { |