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

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2016-04-27 09:08:45 +02:00
parent 566d64d4fb
commit 1f62a6e780
1 changed files with 1 additions and 1 deletions

View File

@ -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) {