Mercurial > libavcodec.hg
diff flac.c @ 7785:a969253a82ff libavcodec
fix issue 616 on roundup : decoding of short flac files
author | jai_menon |
---|---|
date | Wed, 03 Sep 2008 13:31:33 +0000 |
parents | 85ab7655ad4d |
children | 1088ea188568 |
line wrap: on
line diff
--- 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); }