From 5756bc7b025d305a2b5461b9865ff69fd913d546 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Thu, 5 Mar 2009 02:21:35 +0000 Subject: [PATCH] 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 --- libavcodec/flacdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index 5d8b834efc..4563329e5a 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 */