[FFmpeg-cvslog] r15177 - trunk/libavcodec/flac.c

jai_menon subversion
Wed Sep 3 15:31:39 CEST 2008


Author: jai_menon
Date: Wed Sep  3 15:31:33 2008
New Revision: 15177

Log:
fix issue 616 on roundup : decoding of short flac files



Modified:
   trunk/libavcodec/flac.c

Modified: trunk/libavcodec/flac.c
==============================================================================
--- trunk/libavcodec/flac.c	(original)
+++ trunk/libavcodec/flac.c	Wed Sep  3 15:31:33 2008
@@ -614,7 +614,7 @@ static int flac_decode_frame(AVCodecCont
     *data_size=0;
 
     if(s->max_framesize == 0){
-        s->max_framesize= 65536; // should hopefully be enough for the first header
+        s->max_framesize= FFMAX(4, buf_size); // should hopefully be enough for the first header
         s->bitstream= av_fast_realloc(s->bitstream, &s->allocated_bitstream_size, s->max_framesize);
     }
 




More information about the ffmpeg-cvslog mailing list