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

Signed-off-by: Paul B Mahol <onemda@gmail.com>
pull/235/head^2
Paul B Mahol 9 years ago
parent 566d64d4fb
commit 1f62a6e780
  1. 2
      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) {

Loading…
Cancel
Save