37 #define IS_MARKER(state, i, buf, buf_size) \
38 ((state == DCA_MARKER_14B_LE && (i < buf_size-2) && (buf[i+1] & 0xF0) == 0xF0 && buf[i+2] == 0x07) \
39 || (state == DCA_MARKER_14B_BE && (i < buf_size-2) && buf[i+1] == 0x07 && (buf[i+2] & 0xF0) == 0xF0) \
40 || state == DCA_MARKER_RAW_LE || state == DCA_MARKER_RAW_BE || state == DCA_HD_MARKER)
58 for (i = 0; i < buf_size; i++) {
59 state = (state << 8) | buf[i];
70 for (; i < buf_size; i++) {
72 state = (state << 8) | buf[i];
107 int ret, sample_blocks, sr_code;
118 sample_blocks =
get_bits(&gb, 7) + 1;
119 if (sample_blocks < 8)
121 *duration = 256 * (sample_blocks / 8);
126 if (*sample_rate == 0)
134 const uint8_t ** poutbuf,
int *poutbuf_size,
161 *poutbuf_size = buf_size;