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 3ba3a64dc1f4d35515ec5eeb96b67aaf1cd45ffe Author: younengxiao <[email protected]> AuthorDate: Mon Aug 24 20:44:32 2026 -0400 Commit: Michael Niedermayer <[email protected]> CommitDate: Fri Nov 27 02:18:53 2026 +0100 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]> (cherry picked from commit 44161610904f75b99b3f3ffd6dea4aa096b25516) Signed-off-by: Michael Niedermayer <[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 6c75d6eb24..82516027e4 100644 --- a/libavfilter/dnn/dnn_backend_onnx.c +++ b/libavfilter/dnn/dnn_backend_onnx.c @@ -743,6 +743,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]
