mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-19 21:06:42 +00:00
avcodec/indeo3: Round dimensions up in allocate_frame_buffers()
Fixes: Ticket6581
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3be80ce299
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
e166a77c0d
commit
5f82c962b6
@ -168,6 +168,9 @@ static av_cold int allocate_frame_buffers(Indeo3DecodeContext *ctx,
|
||||
int p, chroma_width, chroma_height;
|
||||
int luma_pitch, chroma_pitch, luma_size, chroma_size;
|
||||
|
||||
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 & 3 || luma_height & 3) {
|
||||
|
Loading…
Reference in New Issue
Block a user