ports/multimedia/jmref/files/patch-ldecod_inc_defines.h
Stefan Eßer eca93e998d Fix build with -fno-common
While here add the ISO/IEC and ITU licenses and fix a compiler warning
regarding a mis-compiled comparison (!a == b) --> (!(a == b)) to not
compare !a with b (while !(a == b) was clearly intended).
2020-09-29 10:50:13 +00:00

22 lines
514 B
C

--- ldecod/inc/defines.h.orig 2020-09-29 10:22:20 UTC
+++ ldecod/inc/defines.h
@@ -229,7 +229,7 @@ typedef enum {
} I8x8PredModes;
// Color components
-enum {
+typedef enum {
Y_COMP = 0, // Y Component
U_COMP = 1, // U Component
V_COMP = 2, // V Component
@@ -237,7 +237,9 @@ enum {
G_COMP = 4, // G Component
B_COMP = 5, // B Component
T_COMP = 6
-} ColorComponent;
+} ColorComponent_t;
+
+extern ColorComponent_t ColorComponent;
enum {
EOS = 1, //!< End Of Sequence