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

Git pushed a commit to branch master
in repository ffmpeg.

commit f77ab892f54ea02cb3781d08f25903679d8ef7cc
Author:     Niklas Haas <[email protected]>
AuthorDate: Thu Mar 5 18:30:02 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Mon Mar 9 11:25:58 2026 +0100

    swscale/ops_dispatch: print op list on successful compile
    
    Instead of once at the start of add_convert_pass(). This makes much
    more sense in light of the fact that we want to start e.g. splitting
    passes apart.
    
    Sponsored-by: Sovereign Tech Fund
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/graph.c        | 4 +---
 libswscale/ops_dispatch.c | 2 ++
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libswscale/graph.c b/libswscale/graph.c
index 8e8fb01f95..0901e8d984 100644
--- a/libswscale/graph.c
+++ b/libswscale/graph.c
@@ -598,10 +598,8 @@ static int add_convert_pass(SwsGraph *graph, const 
SwsFormat *src,
 
     av_log(ctx, AV_LOG_DEBUG, "Unoptimized operation list:\n");
     ff_sws_op_list_print(ctx, AV_LOG_DEBUG, AV_LOG_TRACE, ops);
-    av_log(ctx, AV_LOG_DEBUG, "Optimized operation list:\n");
-    ff_sws_op_list_optimize(ops);
-    ff_sws_op_list_print(ctx, AV_LOG_VERBOSE, AV_LOG_TRACE, ops);
 
+    ff_sws_op_list_optimize(ops);
     ret = ff_sws_compile_pass(graph, ops, 0, dst, input, output);
     if (ret < 0)
         goto fail;
diff --git a/libswscale/ops_dispatch.c b/libswscale/ops_dispatch.c
index 64abea27f3..0a6911f9b5 100644
--- a/libswscale/ops_dispatch.c
+++ b/libswscale/ops_dispatch.c
@@ -85,6 +85,8 @@ int ff_sws_ops_compile(SwsContext *ctx, const SwsOpList *ops, 
SwsCompiledOp *out
                "block size = %d, over-read = %d, over-write = %d, cpu flags = 
0x%x\n",
                backend->name, out->block_size, out->over_read, out->over_write,
                out->cpu_flags);
+
+        ff_sws_op_list_print(ctx, AV_LOG_VERBOSE, AV_LOG_TRACE, ops);
         return 0;
     }
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to