This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit e7b9c5fe779ad0497881d466d0c3692c619300e3
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Tue Aug 11 21:24:32 2026 +0200
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Wed Aug 12 17:21:07 2026 +0200

    avformat/wvdec: convert flags to defines
    
    Don't use values that would extend emum data size.
    
    Fixes: warning: enumerator value which exceeds the range of 'int' is a
           C23 extension (2147483648 is too large)
    
    Signed-off-by: Kacper Michajłow <[email protected]>
---
 libavformat/wvdec.c | 26 ++++++++++++--------------
 1 file changed, 12 insertions(+), 14 deletions(-)

diff --git a/libavformat/wvdec.c b/libavformat/wvdec.c
index e69f42baf5..8abba2ccf2 100644
--- a/libavformat/wvdec.c
+++ b/libavformat/wvdec.c
@@ -30,20 +30,18 @@
 #include "id3v1.h"
 #include "wv.h"
 
-enum WV_FLAGS {
-    WV_MONO   = 0x0004,
-    WV_HYBRID = 0x0008,
-    WV_JOINT  = 0x0010,
-    WV_CROSSD = 0x0020,
-    WV_HSHAPE = 0x0040,
-    WV_FLOAT  = 0x0080,
-    WV_INT32  = 0x0100,
-    WV_HBR    = 0x0200,
-    WV_HBAL   = 0x0400,
-    WV_MCINIT = 0x0800,
-    WV_MCEND  = 0x1000,
-    WV_DSD    = 0x80000000,
-};
+#define WV_MONO   0x00000004U
+#define WV_HYBRID 0x00000008U
+#define WV_JOINT  0x00000010U
+#define WV_CROSSD 0x00000020U
+#define WV_HSHAPE 0x00000040U
+#define WV_FLOAT  0x00000080U
+#define WV_INT32  0x00000100U
+#define WV_HBR    0x00000200U
+#define WV_HBAL   0x00000400U
+#define WV_MCINIT 0x00000800U
+#define WV_MCEND  0x00001000U
+#define WV_DSD    0x80000000U
 
 static const int wv_rates[16] = {
      6000,  8000,  9600, 11025, 12000, 16000,  22050, 24000,

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

Reply via email to