diff options
author | Michael Chinen <mchinen@gmail.com> | 2010-12-07 14:58:34 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2010-12-07 14:58:34 +0000 |
commit | a4151444bd024b0d506c3055e71c4df0e79dd49b (patch) | |
tree | a5a7343d4b5ef26111256a4cfe8267e741bf4d17 /libavcodec/flacdec.c | |
parent | 60a684939ab61dbfdf55105907808e015e5f6ec2 (diff) | |
download | ffmpeg-streaming-a4151444bd024b0d506c3055e71c4df0e79dd49b.zip ffmpeg-streaming-a4151444bd024b0d506c3055e71c4df0e79dd49b.tar.gz |
Define FLAC_MIN_FRAME_SIZE and use it in the FLAC decoder.
Patch by Michael Chinen [mchinen at gmail]
Originally committed as revision 25916 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flacdec.c')
-rw-r--r-- | libavcodec/flacdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index 71a2c58..18ea0ac 100644 --- a/libavcodec/flacdec.c +++ b/libavcodec/flacdec.c @@ -566,7 +566,7 @@ static int flac_decode_frame(AVCodecContext *avctx, /* check that there is at least the smallest decodable amount of data. this amount corresponds to the smallest valid FLAC frame possible. FF F8 69 02 00 00 9A 00 00 34 46 */ - if (buf_size < 11) + if (buf_size < FLAC_MIN_FRAME_SIZE) return buf_size; /* check for inline header */ |