[FFmpeg-cvslog] avcodec/indeo3: Round dimensions up in allocate_frame_buffers()
Michael Niedermayer
git at videolan.org
Mon Apr 15 01:48:27 EEST 2024
ffmpeg | branch: release/2.8 | Michael Niedermayer <michael at niedermayer.cc> | Sat Feb 3 20:11:56 2024 +0100| [5f82c962b6a0d38fb33a5210cb2c5e98f664d0e2] | committer: Michael Niedermayer
avcodec/indeo3: Round dimensions up in allocate_frame_buffers()
Fixes: Ticket6581
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 3be80ce299d0073118ae42f5d99c14f912751d93)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5f82c962b6a0d38fb33a5210cb2c5e98f664d0e2
---
libavcodec/indeo3.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c
index 3f31946d66..8cd8d943f9 100644
--- a/libavcodec/indeo3.c
+++ b/libavcodec/indeo3.c
@@ -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) {
More information about the ffmpeg-cvslog
mailing list