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

Signed-off-by: Michael Niedermayer <[email protected]>


>From 35f35d5d8b539ae57add204094b9d5b714568adb Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <[email protected]>
Date: Fri, 6 Mar 2026 15:50:42 +0100
Subject: [PATCH] avutil/opt: Add AV_OPT_FLAG_PRIVILEDGED

Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavutil/opt.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavutil/opt.h b/libavutil/opt.h
index ab24fae777..2748c0d0f0 100644
--- a/libavutil/opt.h
+++ b/libavutil/opt.h
@@ -389,6 +389,12 @@ enum AVOptionType{
  */
 #define AV_OPT_FLAG_CHILD_CONSTS    (1 << 18)
 
+/**
+ * Set if the option should only be available to trusted / priviledged users.
+ * An example might be a output path or raw memory address.
+ */
+#define AV_OPT_FLAG_PRIVILEDGED     (1 << 19)
+
 /**
  * May be set as default_val for AV_OPT_TYPE_FLAG_ARRAY options.
  */
-- 
2.52.0

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

Reply via email to