This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 484ccc1066572e2f5176a8fce3080274d4c1912b
Author:     Niklas Haas <[email protected]>
AuthorDate: Thu Oct 29 13:38:06 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Thu Oct 29 15:47:35 2026 +0000

    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 <[email protected]>
---
 libswscale/ops.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libswscale/ops.c b/libswscale/ops.c
index 2660d66d06..30597c375d 100644
--- a/libswscale/ops.c
+++ b/libswscale/ops.c
@@ -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;

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to