Commit 1031e073 authored by jai_menon's avatar jai_menon

fix issue 616 on roundup : decoding of short flac files



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15177 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8a0f4acc
......@@ -614,7 +614,7 @@ static int flac_decode_frame(AVCodecContext *avctx,
*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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment