mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
566d64d4fb
commit
1f62a6e780
|
@ -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…
Reference in New Issue