From 1f62a6e7803e4b354b2f1a7c9a5d617efa39999b Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 27 Apr 2016 09:08:45 +0200 Subject: [PATCH] avcodec/shorten: make max frame size bigger if custom block size was used Signed-off-by: Paul B Mahol --- libavcodec/shorten.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c index 061a74b8f5..e4cef61811 100644 --- a/libavcodec/shorten.c +++ b/libavcodec/shorten.c @@ -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) {