mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-11-06 05:17:42 +00:00
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:
1 parent
2602f39f55
commit
484ccc1066
1 file changed
+3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user