[FFmpeg-cvslog] avutil/opt: Don't use AV_OPT_TYPE_FLAGS for sentinels

Andreas Rheinhardt git at videolan.org
Thu Mar 7 16:42:32 EET 2024


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat Feb 10 15:50:44 2024 +0100| [be54923abc6d3ab965c17265d44a2724fab29c97] | committer: James Almer

avutil/opt: Don't use AV_OPT_TYPE_FLAGS for sentinels

Make AVOptionType start with 1 instead.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=be54923abc6d3ab965c17265d44a2724fab29c97
---

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

diff --git a/libavutil/opt.h b/libavutil/opt.h
index 61697f0369..91024da022 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,



More information about the ffmpeg-cvslog mailing list