]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
flacdec: There is an even smaller FLAC frame size possibility.
authorjbr <jbr@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 5 Mar 2009 02:36:17 +0000 (02:36 +0000)
committerjbr <jbr@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 5 Mar 2009 02:36:17 +0000 (02:36 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17821 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/flacdec.c

index 4563329e5aba1afbddeaf1472c700c45e35ef364..4ed15c9e0b843cd6c6df19054dd2a6eb19051309 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 */