Browse Source

fix issue 616 on roundup : decoding of short flac files

Originally committed as revision 15177 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Jai Menon 16 years ago
parent
commit
d3ce0792c2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/flac.c

+ 1
- 1
libavcodec/flac.c View File

@@ -614,7 +614,7 @@ static int flac_decode_frame(AVCodecContext *avctx,
*data_size=0; *data_size=0;


if(s->max_framesize == 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); s->bitstream= av_fast_realloc(s->bitstream, &s->allocated_bitstream_size, s->max_framesize);
} }




Loading…
Cancel
Save