PR #22551 opened by Steven Xiao (younengxiao)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22551
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22551.patch


ctx->options.async does not exist on DnnContext; the correct
field is ctx->async directly on the context struct.




>From 10b0f92d9133dc9c6ccb38816d758b1673f420c9 Mon Sep 17 00:00:00 2001
From: stevxiao <[email protected]>
Date: Thu, 19 Mar 2026 10:28:22 -0400
Subject: [PATCH] avfilter/dnn_backend_tf: fix ctx async field access

ctx->options.async does not exist on DnnContext; the correct
field is ctx->async directly on the context struct.

Signed-off-by: younengxiao <[email protected]>
---
 libavfilter/dnn/dnn_backend_tf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/dnn/dnn_backend_tf.c b/libavfilter/dnn/dnn_backend_tf.c
index 2c33691f96..48372bea38 100644
--- a/libavfilter/dnn/dnn_backend_tf.c
+++ b/libavfilter/dnn/dnn_backend_tf.c
@@ -541,8 +541,8 @@ static DNNModel *dnn_load_model_tf(DnnContext *ctx, 
DNNFunctionType func_type, A
     }
 
 #if !HAVE_PTHREAD_CANCEL
-    if (ctx->options.async) {
-        ctx->options.async = 0;
+    if (ctx->async) {
+        ctx->async = 0;
         av_log(filter_ctx, AV_LOG_WARNING, "pthread is not supported, roll 
back to sync.\n");
     }
 #endif
-- 
2.52.0

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

Reply via email to