Lines Matching refs:bs
59 static inline int64_t bs_get_v(const uint8_t **bs)
66 c = **bs; (*bs)++;
79 const uint8_t *bs = p->buf + 4;
80 const uint8_t *bs_end = bs + p->buf_size;
87 while (bs < bs_end + 3) {
88 int header_found = (bs[0] == 'S' && bs[1] == 'H');
89 if (bs[0] < 'A' || bs[0] > 'Z' || bs[1] < 'A' || bs[1] > 'Z')
91 bs += 2;
92 size = bs_get_v(&bs);
95 if (size >= bs_end - bs + 2)
100 if (!AV_RL32(bs)) //zero CRC is invalid
104 bs += size - 2;