Lines Matching refs:obu_size
125 static int read_obu(const uint8_t *buf, int size, int64_t *obu_size, int *type) in read_obu() argument
130 len = parse_obu_header(buf, size, obu_size, &start_pos, in read_obu()
141 int64_t obu_size; in annexb_probe() local
169 ret = read_obu(p->buf + cnt, FFMIN(p->buf_size - cnt, obu_unit_size), &obu_size, &type); in annexb_probe()
170 if (ret < 0 || type != AV1_OBU_TEMPORAL_DELIMITER || obu_size > 0) in annexb_probe()
184 ret = read_obu(p->buf + cnt, FFMIN(p->buf_size - cnt, obu_unit_size), &obu_size, &type); in annexb_probe()
309 static int read_obu_with_size(const uint8_t *buf, int buf_size, int64_t *obu_size, int *type) in read_obu_with_size() argument
334 *obu_size = leb128(&gb); in read_obu_with_size()
335 if (*obu_size > INT_MAX) in read_obu_with_size()
343 size = *obu_size + start_pos; in read_obu_with_size()
351 int64_t obu_size; in obu_probe() local
356 cnt = read_obu_with_size(p->buf, p->buf_size, &obu_size, &type); in obu_probe()
357 if (cnt < 0 || type != AV1_OBU_TEMPORAL_DELIMITER || obu_size != 0) in obu_probe()
361 ret = read_obu_with_size(p->buf + cnt, p->buf_size - cnt, &obu_size, &type); in obu_probe()
362 if (ret < 0 || obu_size <= 0) in obu_probe()
386 int64_t obu_size; in obu_get_packet() local
398 len = read_obu_with_size(header, size, &obu_size, &type); in obu_get_packet()