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

Git pushed a commit to branch release/9.0
in repository ffmpeg.

commit 41a8dd2bb481d60eaba57ba2b8cd702ad488b64d
Author:     tknaveen <[email protected]>
AuthorDate: Thu Apr 30 16:43:49 2026 +0530
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Fri Nov 27 03:29:07 2026 +0100

    avfilter/dnn_backend_torch: fix missing ret in async error path
    
    ff_dnn_start_inference_async() return value was not stored in ret,
    causing execute_model_th() to return success on async startup failure.
    This left vf_dnn_processing stuck in its flush loop waiting on a
    task that was never started.
    
    (cherry picked from commit 766074133f9711e440144a940ac0ad32a8b8e5d7)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/dnn/dnn_backend_torch.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libavfilter/dnn/dnn_backend_torch.cpp 
b/libavfilter/dnn/dnn_backend_torch.cpp
index de741c546a..8c96145cee 100644
--- a/libavfilter/dnn/dnn_backend_torch.cpp
+++ b/libavfilter/dnn/dnn_backend_torch.cpp
@@ -345,7 +345,11 @@ static int execute_model_th(THRequestItem *request, Queue 
*lltask_queue)
     }
 
     if (task->async) {
-        return ff_dnn_start_inference_async(th_model->ctx, 
&request->exec_module);
+        ret = ff_dnn_start_inference_async(th_model->ctx, 
&request->exec_module);
+        if (ret != 0) {
+            goto err;
+        }
+        return 0;
     } else {
         // Synchronous execution path
         ret = th_start_inference((void *)(request));

-- 
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