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

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 766074133f avfilter/dnn_backend_torch: fix missing ret in async error 
path
766074133f is described below

commit 766074133f9711e440144a940ac0ad32a8b8e5d7
Author:     tknaveen <[email protected]>
AuthorDate: Thu Apr 30 16:43:49 2026 +0530
Commit:     Guo Yejun <[email protected]>
CommitDate: Fri Jul 3 21:29:36 2026 +0800

    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.
---
 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 24a202f493..62bf7d9e9e 100644
--- a/libavfilter/dnn/dnn_backend_torch.cpp
+++ b/libavfilter/dnn/dnn_backend_torch.cpp
@@ -342,7 +342,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));

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

Reply via email to