X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fshorten.c;h=e4cef618113aa438fa2c3a7ae012fbec6cd61b45;hb=b975aeec02e4518a4e5f2996cf51d113e42e1727;hp=061a74b8f5b4ef4e4be8a606d0bc1a7ecf410210;hpb=909f5e71001f77a22fb76c440c9f73643b0c943b;p=ffmpeg diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c index 061a74b8f5b..e4cef618113 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) {