swscale/ops: skip printing op lists below the log level

ff_sws_op_list_print() formatted every op even when av_log() then
discarded the result. Op lists are printed during every graph setup, so
at the default log level this took about a quarter of the swscale
self-test runtime.

Signed-off-by: Niklas Haas <git@haasn.dev>
This commit is contained in:
Niklas Haas authored and Niklas Haas committed 2026-10-29 15:47:35 +00:00
1 parent 2602f39f55
commit 484ccc1066
1 file changed
+3
+3
View File
@@ -1042,6 +1042,9 @@ void ff_sws_op_list_print(void *log, int lev, int lev_extra,
const SwsOpList *ops)
{
AVBPrint bpc, *bp = &bpc;
if (av_log_get_level() < lev)
return;
if (!ops->num_ops) {
av_log(log, lev, " (empty)\n");
return;