avcodec/jpeg2000dec: Print bpno level when erroring out

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 8a3c7c9c32)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2026-01-08 15:11:00 +01:00
parent 0cf01132dd
commit 096bb7b187
+1 -1
View File
@@ -1801,7 +1801,7 @@ static int decode_cblk(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *codsty,
while (passno--) {
if (bpno < 0 || bpno > 29) {
av_log(s->avctx, AV_LOG_ERROR, "bpno became invalid\n");
av_log(s->avctx, AV_LOG_ERROR, "bpno (%d) became invalid\n", bpno);
return AVERROR_INVALIDDATA;
}
switch(pass_t) {