From 5852682dbd596db5f54810f068030a72a0e71a8d Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 2 Jan 2023 18:41:37 +0100 Subject: [PATCH] avcodec/bonk: increase level limit as joint encodings needs more --- libavcodec/bonk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/bonk.c b/libavcodec/bonk.c index 182b5ef459..5d736b1563 100644 --- a/libavcodec/bonk.c +++ b/libavcodec/bonk.c @@ -217,7 +217,7 @@ static int intlist_read(BonkContext *s, int *buf, int entries, int base_2_part) level += 1 << low_bits; } - if (level > 1 << 15) + if (level > 1 << 16) return AVERROR_INVALIDDATA; if (x >= max_x)