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];
71 for (; i < buf_size; i++) {
73 state = (state << 8) | buf[i];
104 int ret, sample_blocks, sr_code;
115 sample_blocks =
get_bits(&gb, 7) + 1;
116 if (sample_blocks < 8)
118 *duration = 256 * (sample_blocks / 8);
127 if (*sample_rate == 0)
135 const uint8_t ** poutbuf,
int *poutbuf_size,
162 *poutbuf_size = buf_size;