mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
Block a user