From: Justin Ruggles Date: Thu, 5 Mar 2009 02:36:17 +0000 (+0000) Subject: flacdec: There is an even smaller FLAC frame size possibility. X-Git-Tag: v0.6~5497 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=629fb5c46a7a49681e4c91e0bbd7da198dc821ea;p=coroid%2Flibav_saccubus.git flacdec: There is an even smaller FLAC frame size possibility. Originally committed as revision 17821 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index 4563329e5..4ed15c9e0 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 < 16) + if (buf_size < 11) goto end; /* check for inline header */