Commit a16257e454 for ffmpeg
commit a16257e4548595fcc7932fa4115a3261f43b27c6
Author: Niklas Haas <git@haasn.dev>
Date: Thu Oct 29 13:42:45 2026 +0100
swscale/ops: clamp lev_extra >= lev
This doesn't make sense to pass otherwise, but the clamp is cheap.
Signed-off-by: Niklas Haas <git@haasn.dev>
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];