diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index 4563329e5a..4ed15c9e0b 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 */