From a16257e4548595fcc7932fa4115a3261f43b27c6 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Thu, 29 Oct 2026 13:42:45 +0100 Subject: [PATCH] swscale/ops: clamp lev_extra >= lev This doesn't make sense to pass otherwise, but the clamp is cheap. Signed-off-by: Niklas Haas --- libswscale/ops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libswscale/ops.c b/libswscale/ops.c index 30597c375d..07dd1aba48 100644 --- a/libswscale/ops.c +++ b/libswscale/ops.c @@ -1051,6 +1051,7 @@ void ff_sws_op_list_print(void *log, int lev, int lev_extra, } av_bprint_init(bp, 0, AV_BPRINT_SIZE_AUTOMATIC); + lev_extra = FFMAX(lev_extra, lev); for (int n = 0; n < ops->num_ops; n++) { const SwsOp *op = &ops->ops[n];