PR #22712 opened by tknaveen
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22712
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22712.patch

Fix torch backend option to include .unit = "backend" for proper unit group 
association.


>From 55f671f5940b44af632b39f8a0ce758ae1366189 Mon Sep 17 00:00:00 2001
From: tknaveen <[email protected]>
Date: Sat, 4 Apr 2026 17:27:43 +0530
Subject: [PATCH] avfilter/vf_dnn_processing: fix torch backend AVOption unit

The torch backend option was missing .unit = "backend", causing it
to not be properly associated with the backend unit group.

Signed-off-by: Naveen <[email protected]>
---
 libavfilter/vf_dnn_processing.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_dnn_processing.c b/libavfilter/vf_dnn_processing.c
index 0771ceb5fc..5690cc5cd7 100644
--- a/libavfilter/vf_dnn_processing.c
+++ b/libavfilter/vf_dnn_processing.c
@@ -51,7 +51,7 @@ static const AVOption dnn_processing_options[] = {
     { "openvino",    "openvino backend flag",      0,                        
AV_OPT_TYPE_CONST,     { .i64 = DNN_OV },    0, 0, FLAGS, .unit = "backend" },
 #endif
 #if (CONFIG_LIBTORCH == 1)
-    { "torch",       "torch backend flag",         0,                        
AV_OPT_TYPE_CONST,     { .i64 = DNN_TH },    0, 0, FLAGS, "backend" },
+    { "torch",       "torch backend flag",         0,                        
AV_OPT_TYPE_CONST,     { .i64 = DNN_TH },    0, 0, FLAGS, .unit = "backend" },
 #endif
     { NULL }
 };
-- 
2.52.0

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

Reply via email to