Mercurial > libavcodec.hg
changeset 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 | e3f2d90a2295 |
children | 0251b288a4a0 |
files | flac.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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); }