Lines Matching refs:p_end

1259 static inline int get8(const uint8_t **pp, const uint8_t *p_end)
1265 if (p >= p_end)
1272 static inline int get16(const uint8_t **pp, const uint8_t *p_end)
1278 if (1 >= p_end - p)
1287 static char *getstr8(const uint8_t **pp, const uint8_t *p_end)
1294 len = get8(&p, p_end);
1297 if (len > p_end - p)
1355 const uint8_t **pp, const uint8_t *p_end)
1359 val = get8(pp, p_end);
1364 val = get16(pp, p_end);
1368 val = get8(pp, p_end);
1373 val = get8(pp, p_end);
1377 val = get8(pp, p_end);
2298 const uint8_t *p, *p_end;
2304 p_end = section + section_len - 4;
2306 if (parse_section_header(&h, &p, p_end) < 0)
2313 mp4_read_od(s, p, (unsigned) (p_end - p), mp4_descr, &mp4_descr_count,
2879 static int parse_stream_identifier_desc(const uint8_t *p, const uint8_t *p_end)
2887 desc_list_len = get16(pp, p_end);
2892 if (desc_list_end > p_end)
2929 const uint8_t *p, *p_end, *desc_list_end;
2952 p_end = section + section_len - 4;
2954 if (parse_section_header(h, &p, p_end) < 0)
2984 pcr_pid = get16(&p, p_end);
2993 program_info_length = get16(&p, p_end);
2999 tag = get8(&p, p_end);
3000 len = get8(&p, p_end);
3010 get8(&p, p_end); // scope
3011 get8(&p, p_end); // label
3033 if (p >= p_end)
3046 stream_type = get8(&p, p_end);
3049 pid = get16(&p, p_end);
3056 stream_identifier = parse_stream_identifier_desc(p, p_end) + 1;
3137 desc_list_len = get16(&p, p_end);
3142 if (desc_list_end > p_end)
3173 const uint8_t *p, *p_end;
3181 p_end = section + section_len - 4;
3183 if (parse_section_header(h, &p, p_end) < 0)
3197 sid = get16(&p, p_end);
3200 pmt_pid = get16(&p, p_end);
3259 const uint8_t *p, *p_end;
3279 p_end = section + section_len - 4;
3282 if (parse_section_header(h, &p, p_end) < 0)
3315 const uint8_t *p, *p_end, *desc_list_end, *desc_end;
3322 p_end = section + section_len - 4;
3324 if (parse_section_header(h, &p, p_end) < 0)
3335 onid = get16(&p, p_end);
3338 val = get8(&p, p_end);
3342 sid = get16(&p, p_end);
3345 val = get8(&p, p_end);
3348 desc_list_len = get16(&p, p_end);
3353 if (desc_list_end > p_end)
3405 const uint8_t *p, *p_end;
3468 p_end = packet + TS_PACKET_SIZE;
3469 if (p >= p_end || !has_payload)
3481 if (len > p_end - p)
3492 if (p < p_end) {
3494 p, p_end - p, 1);
3499 p, p_end - p, 0);
3521 if ((ret = tss->u.pes_filter.pes_cb(tss, p, p_end - p, is_start,