Commit 914e454559 for ffmpeg
commit 914e454559ae41d787eb15aa5fd6d50c3f6bc356
Author: Niklas Haas <git@haasn.dev>
Date: Thu Oct 29 13:48:36 2026 +0100
swscale/uops: skip printing uop lists below the log level
As for op lists, avoid formatting the names of all uops when av_log()
discards them anyway.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Niklas Haas <git@haasn.dev>
diff --git a/libswscale/uops.c b/libswscale/uops.c
index 1d06a70e5f..a7150c1130 100644
--- a/libswscale/uops.c
+++ b/libswscale/uops.c
@@ -200,6 +200,9 @@ void ff_sws_uop_list_remove_at(SwsUOpList *uops, int index, int count)
void ff_sws_uop_list_print(void *log, int lev, const SwsUOpList *uops)
{
+ if (av_log_get_level() < lev)
+ return;
+
av_log(log, lev, "Compiled micro-ops:\n");
for (int i = 0; i < uops->num_ops; i++) {
char name[SWS_UOP_NAME_MAX];