Commit 1f62a6e7 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/shorten: make max frame size bigger if custom block size was used

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 566d64d4
......@@ -558,7 +558,7 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data,
int max_framesize;
void *tmp_ptr;
max_framesize = FFMAX(s->max_framesize, s->blocksize * s->channels * 2);
max_framesize = FFMAX(s->max_framesize, s->blocksize * s->channels * 8);
tmp_ptr = av_fast_realloc(s->bitstream, &s->allocated_bitstream_size,
max_framesize + AV_INPUT_BUFFER_PADDING_SIZE);
if (!tmp_ptr) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment