Commit b4b58485 authored by Michael Niedermayer's avatar Michael Niedermayer

shorten: increase max_frame_size.

Fixes Ticket1250
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0261902d
...@@ -414,7 +414,7 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data, ...@@ -414,7 +414,7 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data,
/* allocate internal bitstream buffer */ /* allocate internal bitstream buffer */
if(s->max_framesize == 0){ if(s->max_framesize == 0){
void *tmp_ptr; void *tmp_ptr;
s->max_framesize= 1024; // should hopefully be enough for the first header s->max_framesize= 8192; // should hopefully be enough for the first header
tmp_ptr = av_fast_realloc(s->bitstream, &s->allocated_bitstream_size, tmp_ptr = av_fast_realloc(s->bitstream, &s->allocated_bitstream_size,
s->max_framesize); s->max_framesize);
if (!tmp_ptr) { if (!tmp_ptr) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment