summaryrefslogtreecommitdiff
path: root/libavcodec/dca_syncwords.h
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-10-23 14:29:35 -0400
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-10-30 15:06:19 -0400
commit47af5db721ed5ba70387e28cc4664e3fcb2b3356 (patch)
tree96508a2c1b9e1e563add7708bef072d4d5b4972b /libavcodec/dca_syncwords.h
parent191f611906c27f7b1a04955abf0b6f7b7e34a3c7 (diff)
downloadffmpeg-47af5db721ed5ba70387e28cc4664e3fcb2b3356.tar.gz
all: fix enum definition for large values
ISO C restricts enumerator values to the range of int. Thus (for instance) 0x80000000 unfortunately does not work, and throws a warning with -Wpedantic on clang 3.7. This fixes it by using alternative expressions that result in identical values but do not have this issue. Tested with FATE. Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavcodec/dca_syncwords.h')
-rw-r--r--libavcodec/dca_syncwords.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/libavcodec/dca_syncwords.h b/libavcodec/dca_syncwords.h
index 3466b6bc6f..6981cb80b5 100644
--- a/libavcodec/dca_syncwords.h
+++ b/libavcodec/dca_syncwords.h
@@ -19,19 +19,17 @@
#ifndef AVCODEC_DCA_SYNCWORDS_H
#define AVCODEC_DCA_SYNCWORDS_H
-enum DCASyncwords {
- DCA_SYNCWORD_CORE_BE = 0x7FFE8001U,
- DCA_SYNCWORD_CORE_LE = 0xFE7F0180U,
- DCA_SYNCWORD_CORE_14B_BE = 0x1FFFE800U,
- DCA_SYNCWORD_CORE_14B_LE = 0xFF1F00E8U,
- DCA_SYNCWORD_XCH = 0x5A5A5A5AU,
- DCA_SYNCWORD_XXCH = 0x47004A03U,
- DCA_SYNCWORD_X96 = 0x1D95F262U,
- DCA_SYNCWORD_XBR = 0x655E315EU,
- DCA_SYNCWORD_LBR = 0x0A801921U,
- DCA_SYNCWORD_XLL = 0x41A29547U,
- DCA_SYNCWORD_SUBSTREAM = 0x64582025U,
- DCA_SYNCWORD_SUBSTREAM_CORE = 0x02B09261U,
-};
+#define DCA_SYNCWORD_CORE_BE 0x7FFE8001U
+#define DCA_SYNCWORD_CORE_LE 0xFE7F0180U
+#define DCA_SYNCWORD_CORE_14B_BE 0x1FFFE800U
+#define DCA_SYNCWORD_CORE_14B_LE 0xFF1F00E8U
+#define DCA_SYNCWORD_XCH 0x5A5A5A5AU
+#define DCA_SYNCWORD_XXCH 0x47004A03U
+#define DCA_SYNCWORD_X96 0x1D95F262U
+#define DCA_SYNCWORD_XBR 0x655E315EU
+#define DCA_SYNCWORD_LBR 0x0A801921U
+#define DCA_SYNCWORD_XLL 0x41A29547U
+#define DCA_SYNCWORD_SUBSTREAM 0x64582025U
+#define DCA_SYNCWORD_SUBSTREAM_CORE 0x02B09261U
#endif /* AVCODEC_DCA_SYNCWORDS_H */