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 4416161090 avfilter/dnn: fix teardown hang in ONNX backend with nireq
>= 2
4416161090 is described below
commit 44161610904f75b99b3f3ffd6dea4aa096b25516
Author: younengxiao <[email protected]>
AuthorDate: Mon Aug 24 20:44:32 2026 -0400
Commit: guoyejun <[email protected]>
CommitDate: Tue Sep 1 10:59:14 2026 +0000
avfilter/dnn: fix teardown hang in ONNX backend with nireq >= 2
The ONNX Runtime backend only ever runs one synchronous request, so
clamp nireq to 1 at load time (matching the actual allocation)
Signed-off-by: younengxiao <[email protected]>
---
libavfilter/dnn/dnn_backend_onnx.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libavfilter/dnn/dnn_backend_onnx.c
b/libavfilter/dnn/dnn_backend_onnx.c
index 16b95cc55c..009387b36d 100644
--- a/libavfilter/dnn/dnn_backend_onnx.c
+++ b/libavfilter/dnn/dnn_backend_onnx.c
@@ -853,6 +853,14 @@ static DNNModel *dnn_load_model_onnx(DnnContext *ctx,
DNNFunctionType func_type,
model = &onnx_model->model;
onnx_model->ctx = ctx;
+ if (ctx->nireq > 1) {
+ av_log(ctx, AV_LOG_WARNING,
+ "nireq=%d is not supported by the ONNX Runtime backend, "
+ "which only allocates a single, synchronous inference "
+ "request. Rolling back to nireq=1.\n", ctx->nireq);
+ }
+ ctx->nireq = 1;
+
status = g_ort->CreateEnv(ORT_LOGGING_LEVEL_WARNING, "FFmpeg",
&onnx_model->env);
if (status != NULL) {
av_log(ctx, AV_LOG_ERROR, "Failed to create ONNX Runtime
environment\n");
--
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]