[FFmpeg-cvslog] avcodec/atrac3: increase max block align size

Paul B Mahol git at videolan.org
Sat Nov 21 23:13:46 EET 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Nov 21 22:09:17 2020 +0100| [d29a9b8891d30d22a27c8e0ac84f0339797cb1f9] | committer: Paul B Mahol

avcodec/atrac3: increase max block align size

Fixes decoding of lossy part of advanced lossless atrac3.
Regression since f09151fff9c754fbc1d2560adf18b14957f8b181

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d29a9b8891d30d22a27c8e0ac84f0339797cb1f9
---

 libavcodec/atrac3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index 1e884a56b6..46b98d2f78 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -968,7 +968,7 @@ static av_cold int atrac3_decode_init(AVCodecContext *avctx)
         return AVERROR_INVALIDDATA;
     }
 
-    if (avctx->block_align > 1024 || avctx->block_align <= 0)
+    if (avctx->block_align > 4096 || avctx->block_align <= 0)
         return AVERROR(EINVAL);
 
     q->decoded_bytes_buffer = av_mallocz(FFALIGN(avctx->block_align, 4) +



More information about the ffmpeg-cvslog mailing list