Commit 2ed5925e authored by Paul B Mahol's avatar Paul B Mahol

avcodec/flac: smallest frame is 10 bytes

Fixes #9270
parent 1e202d89
......@@ -33,7 +33,7 @@
#define FLAC_MAX_CHANNELS 8
#define FLAC_MIN_BLOCKSIZE 16
#define FLAC_MAX_BLOCKSIZE 65535
#define FLAC_MIN_FRAME_SIZE 11
#define FLAC_MIN_FRAME_SIZE 10
enum {
FLAC_CHMODE_INDEPENDENT = 0,
......
......@@ -577,7 +577,7 @@ static int flac_decode_frame(AVCodecContext *avctx, AVFrame *frame,
/* check that there is at least the smallest decodable amount of data.
this amount corresponds to the smallest valid FLAC frame possible.
FF F8 69 02 00 00 9A 00 00 34 46 */
FF F8 69 02 00 00 9A 00 00 34 */
if (buf_size < FLAC_MIN_FRAME_SIZE)
return buf_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment