aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/shorten.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-04-27 09:08:45 +0200
committerPaul B Mahol <onemda@gmail.com>2016-04-27 09:08:45 +0200
commit1f62a6e7803e4b354b2f1a7c9a5d617efa39999b (patch)
tree155c19f7623a757e97f0e1b543f7f64950e82938 /libavcodec/shorten.c
parent566d64d4fbb2d949bbb8d26b1291ddf6ea58afb9 (diff)
downloadffmpeg-1f62a6e7803e4b354b2f1a7c9a5d617efa39999b.tar.gz
avcodec/shorten: make max frame size bigger if custom block size was used
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/shorten.c')
-rw-r--r--libavcodec/shorten.c2
1 files changed, 1 insertions, 1 deletions
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) {