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

Git pushed a commit to branch master
in repository ffmpeg.

commit fdc0a66cbddd5b673ea44216646f80f3ad17586b
Author:     Niklas Haas <[email protected]>
AuthorDate: Sat Mar 7 00:49:08 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Mon Mar 9 12:01:51 2026 +0100

    swscale/graph: skip threading for single-slice passes
    
    This condition was weaker than necessary.
    
    In particular, graph->num_thread == 1 guarantees pass->num_slices == 1.
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/graph.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/graph.c b/libswscale/graph.c
index 65cc920588..efa78940b3 100644
--- a/libswscale/graph.c
+++ b/libswscale/graph.c
@@ -909,7 +909,7 @@ void ff_sws_graph_run(SwsGraph *graph, const AVFrame *dst, 
const AVFrame *src)
         if (pass->setup)
             pass->setup(graph->exec.output, graph->exec.input, pass);
 
-        if (graph->num_threads == 1) {
+        if (pass->num_slices == 1) {
             pass->run(graph->exec.output, graph->exec.input, 0, pass->height, 
pass);
         } else {
             avpriv_slicethread_execute(graph->slicethread, pass->num_slices, 
0);

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

Reply via email to