38 #define IS_MARKER(state, i, buf, buf_size) \
39 ((state == DCA_SYNCWORD_CORE_14B_LE && (i < buf_size - 2) && (buf[i + 1] & 0xF0) == 0xF0 && buf[i + 2] == 0x07) || \
40 (state == DCA_SYNCWORD_CORE_14B_BE && (i < buf_size - 2) && buf[i + 1] == 0x07 && (buf[i + 2] & 0xF0) == 0xF0) || \
41 state == DCA_SYNCWORD_CORE_LE || state == DCA_SYNCWORD_CORE_BE || state == DCA_SYNCWORD_SUBSTREAM)
59 for (i = 0; i < buf_size; i++) {
60 state = (state << 8) | buf[i];
72 for (; i < buf_size; i++) {
74 state = (state << 8) | buf[i];
105 int ret, sample_blocks, sr_code;
116 sample_blocks =
get_bits(&gb, 7) + 1;
117 if (sample_blocks < 8)
119 *duration = 256 * (sample_blocks / 8);
128 if (*sample_rate == 0)
135 const uint8_t **poutbuf,
int *poutbuf_size,
162 *poutbuf_size = buf_size;