Message ID | 20240203192931.28534-1-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | 3be80ce299d0073118ae42f5d99c14f912751d93 |
Headers | show |
Series | [FFmpeg-devel] avcodec/indeo3: Round dimensions up in allocate_frame_buffers() | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
On Sat, Feb 03, 2024 at 08:29:31PM +0100, Michael Niedermayer wrote: > Fixes: Ticket6581 > > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > --- > libavcodec/indeo3.c | 3 +++ > 1 file changed, 3 insertions(+) will apply [...]
diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c index 5f1014f0d49..7bb0235bdb5 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) {
Fixes: Ticket6581 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/indeo3.c | 3 +++ 1 file changed, 3 insertions(+)