28 #define START_CODE 0x000001
44 for (i = 0; i < buf_size; i++) {
52 nut = (pc->
state64 >> 2 * 8 + 1) & 0x3F;
55 (nut >= 41 && nut <= 44) || (nut >= 48 && nut <= 55)) {
62 int first_slice_segment_in_pic_flag = buf[i] >> 7;
63 if (first_slice_segment_in_pic_flag) {
92 const uint8_t *buf_end = buf + buf_size;
111 memset(h->
nals, 0,
sizeof(*tmp));
118 int src_length, consumed;
120 if (--buf + 2 >= buf_end)
122 src_length = buf_end -
buf;
191 int slice_address_length;
259 const uint8_t **poutbuf,
int *poutbuf_size,
279 *poutbuf_size = buf_size;
290 for (i = 0; i < buf_size; i++) {
291 state = (state << 8) | buf[i];
292 if (((state >> 8) & 0xFFFFFF) ==
START_CODE) {
293 int nut = (state >> 1) & 0x3F;