diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-11-21 22:09:17 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-11-21 22:13:10 +0100 |
commit | d29a9b8891d30d22a27c8e0ac84f0339797cb1f9 (patch) | |
tree | 3544a14072c57c2483aa8d30fd39f810dc782fe6 /libavcodec/atrac3.c | |
parent | a108a4d809f8345303e1aa7578d608a726c53686 (diff) | |
download | ffmpeg-d29a9b8891d30d22a27c8e0ac84f0339797cb1f9.tar.gz |
avcodec/atrac3: increase max block align size
Fixes decoding of lossy part of advanced lossless atrac3.
Regression since f09151fff9c754fbc1d2560adf18b14957f8b181
Diffstat (limited to 'libavcodec/atrac3.c')
-rw-r--r-- | libavcodec/atrac3.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) + |