shithub: opus

Download patch

ref: a8be38a3769e9f0f1766be5891db46051a1c961a
parent: 4fad200a86c70427842c8b505e78b46bb3f25d38
author: Jean-Marc Valin <[email protected]>
date: Wed Apr 29 18:16:26 EDT 2009

Apparently the 0b notation used for the flags isn't standard C.

--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -372,14 +372,14 @@
 #define FLAG_MASK        (FLAG_INTRA|FLAG_PITCH|FLAG_SHORT|FLAG_FOLD)
 
 celt_int32_t flaglist[8] = {
-      0b00   | FLAG_FOLD,
-      0b01   | FLAG_PITCH|FLAG_FOLD,
-      0b1000 | FLAG_NONE,
-      0b1001 | FLAG_SHORT|FLAG_FOLD,
-      0b1010 | FLAG_PITCH,
-      0b1011 | FLAG_INTRA,
-      0b110  | FLAG_INTRA|FLAG_FOLD,
-      0b111  | FLAG_INTRA|FLAG_SHORT|FLAG_FOLD
+      0 /*00  */ | FLAG_FOLD,
+      1 /*01  */ | FLAG_PITCH|FLAG_FOLD,
+      8 /*1000*/ | FLAG_NONE,
+      9 /*1001*/ | FLAG_SHORT|FLAG_FOLD,
+     10 /*1010*/ | FLAG_PITCH,
+     11 /*1011*/ | FLAG_INTRA,
+      6 /*110 */ | FLAG_INTRA|FLAG_FOLD,
+      7 /*111 */ | FLAG_INTRA|FLAG_SHORT|FLAG_FOLD
 };
 
 void encode_flags(ec_enc *enc, int intra_ener, int has_pitch, int shortBlocks, int has_fold)