OSDN Git Service

flacdec: There is an even smaller FLAC frame size possibility.
authorJustin Ruggles <justin.ruggles@gmail.com>
Thu, 5 Mar 2009 02:36:17 +0000 (02:36 +0000)
committerJustin Ruggles <justin.ruggles@gmail.com>
Thu, 5 Mar 2009 02:36:17 +0000 (02:36 +0000)
Originally committed as revision 17821 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/flacdec.c

index 4563329..4ed15c9 100644 (file)
@@ -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 */