From c7d85d2d0b27c1cd417bd6f3514109fcf5f88757 Mon Sep 17 00:00:00 2001
From: naveentk <@naveentk3205>
Date: Sat, 4 Apr 2026 14:07:03 +0530
Subject: [PATCH] avfilter/vf_dnn_processing: fix AVOption registration for
 torch backend Fix missing .unit designated initializer in
 dnn_processing_options to properly register the LibTorch backend option

Signed-off-by: naveentk <@naveentk3205>
---
 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.53.0

