diff options
author | Jai Menon <jmenon86@gmail.com> | 2008-09-03 13:31:33 +0000 |
---|---|---|
committer | Jai Menon <jmenon86@gmail.com> | 2008-09-03 13:31:33 +0000 |
commit | d3ce0792c2ae79e3e48d7732b8eeb706f70cd7de (patch) | |
tree | 98fbfc9f2e1ccbcbcdcda4705b0eddaab6d1aad3 /libavcodec | |
parent | c7ac9449bad31d16dbb34d09218584b082c3be65 (diff) | |
download | ffmpeg-d3ce0792c2ae79e3e48d7732b8eeb706f70cd7de.tar.gz |
fix issue 616 on roundup : decoding of short flac files
Originally committed as revision 15177 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/flac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flac.c b/libavcodec/flac.c index 60b35a3933..4028507e0d 100644 --- a/libavcodec/flac.c +++ b/libavcodec/flac.c @@ -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); } |