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

This commit is contained in:
Jean-Marc Valin 2009-04-29 22:16:26 -04:00
parent 4fad200a86
commit a8be38a376

View file

@ -372,14 +372,14 @@ static void compute_inv_mdcts(const CELTMode *mode, int shortBlocks, celt_sig_t
#define FLAG_MASK (FLAG_INTRA|FLAG_PITCH|FLAG_SHORT|FLAG_FOLD) #define FLAG_MASK (FLAG_INTRA|FLAG_PITCH|FLAG_SHORT|FLAG_FOLD)
celt_int32_t flaglist[8] = { celt_int32_t flaglist[8] = {
0b00 | FLAG_FOLD, 0 /*00 */ | FLAG_FOLD,
0b01 | FLAG_PITCH|FLAG_FOLD, 1 /*01 */ | FLAG_PITCH|FLAG_FOLD,
0b1000 | FLAG_NONE, 8 /*1000*/ | FLAG_NONE,
0b1001 | FLAG_SHORT|FLAG_FOLD, 9 /*1001*/ | FLAG_SHORT|FLAG_FOLD,
0b1010 | FLAG_PITCH, 10 /*1010*/ | FLAG_PITCH,
0b1011 | FLAG_INTRA, 11 /*1011*/ | FLAG_INTRA,
0b110 | FLAG_INTRA|FLAG_FOLD, 6 /*110 */ | FLAG_INTRA|FLAG_FOLD,
0b111 | FLAG_INTRA|FLAG_SHORT|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) void encode_flags(ec_enc *enc, int intra_ener, int has_pitch, int shortBlocks, int has_fold)