forked from FFmpeg/FFmpeg
avcodec/indeo3: Round dimensions up in allocate_frame_buffers()
Fixes: Ticket6581 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
f465badb06
commit
3be80ce299
1 changed files with 3 additions and 0 deletions
|
@ -171,6 +171,9 @@ static av_cold int allocate_frame_buffers(Indeo3DecodeContext *ctx,
|
||||||
int luma_size, chroma_size;
|
int luma_size, chroma_size;
|
||||||
ptrdiff_t luma_pitch, chroma_pitch;
|
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 ||
|
if (luma_width < 16 || luma_width > 640 ||
|
||||||
luma_height < 16 || luma_height > 480 ||
|
luma_height < 16 || luma_height > 480 ||
|
||||||
luma_width & 1 || luma_height & 1) {
|
luma_width & 1 || luma_height & 1) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue