# HG changeset patch # User jai_menon # Date 1220448693 0 # Node ID a969253a82ff946cec8777e122b3d9d40c965a78 # Parent e3f2d90a229596d5417620f8100d4f52362a7894 fix issue 616 on roundup : decoding of short flac files diff -r e3f2d90a2295 -r a969253a82ff flac.c --- a/flac.c Wed Sep 03 12:43:18 2008 +0000 +++ b/flac.c Wed Sep 03 13:31:33 2008 +0000 @@ -614,7 +614,7 @@ *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); }