shorten: increase max_frame_size.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 8 May 2012 16:52:18 +0000 (18:52 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 8 May 2012 18:18:53 +0000 (20:18 +0200)
Fixes Ticket1250

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/shorten.c

index 18b8012..b211e4f 100644 (file)
@@ -414,7 +414,7 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data,
     /* allocate internal bitstream buffer */
     if(s->max_framesize == 0){
         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,
                                   s->max_framesize);
         if (!tmp_ptr) {