diff mbox series

[FFmpeg-devel,26/27] avutil/opt: Don't use AV_OPT_TYPE_FLAGS for sentinels

Message ID DU0P250MB0747FB77019E7F10FBA91C4E8F4A2@DU0P250MB0747.EURP250.PROD.OUTLOOK.COM
State New
Headers show
Series Major library version bump | expand

Checks

Context Check Description
andriy/configure_x86 warning Failed to apply patch
yinshiyou/configure_loongarch64 warning Failed to apply patch

Commit Message

Andreas Rheinhardt Feb. 10, 2024, 2:50 p.m. UTC
Make AVOptionType start with 1 instead.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
One could also add an AV_OPT_TYPE_NONE.

 libavutil/opt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavutil/opt.h b/libavutil/opt.h
index 3ceb4f86eb..0f84cc53e1 100644
--- a/libavutil/opt.h
+++ b/libavutil/opt.h
@@ -221,7 +221,7 @@ 
  */
 
 enum AVOptionType{
-    AV_OPT_TYPE_FLAGS,
+    AV_OPT_TYPE_FLAGS = 1,
     AV_OPT_TYPE_INT,
     AV_OPT_TYPE_INT64,
     AV_OPT_TYPE_DOUBLE,