diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2009-03-05 02:21:35 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2009-03-05 02:21:35 +0000 |
commit | 5756bc7b025d305a2b5461b9865ff69fd913d546 (patch) | |
tree | 585d9282cefb237bb789da1cae18bf3adf70c936 /libavcodec/flacdec.c | |
parent | bf1d7e285c2859dbea59ebbe30fa8f5b4f5c0b74 (diff) | |
download | ffmpeg-streaming-5756bc7b025d305a2b5461b9865ff69fd913d546.zip ffmpeg-streaming-5756bc7b025d305a2b5461b9865ff69fd913d546.tar.gz |
flacdec: 10l to me. I miscalculated the smallest FLAC frame. It is 16
bytes, not 24.
Originally committed as revision 17820 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 5d8b834..4563329 100644 --- a/libavcodec/flacdec.c +++ b/libavcodec/flacdec.c @@ -651,7 +651,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. */ - if (buf_size < 24) + if (buf_size < 16) goto end; /* check for inline header */ |