35 const uint8_t *
const end,
36 uint32_t *
const start_code)
58 else if (
p[-1] > 1 ||
80 const uint8_t *
const end,
81 uint32_t *
const start_code)
88 if (*start_code == 0x100)
96 for (
int i = 0; i < 3; i++)
This is in libmythtv because that is where the parsers, which are its main users, are.
bool start_code_is_valid(uint32_t start_code)
Test whether a start code found by find_start_code() is valid.
MTV_PUBLIC const uint8_t * find_start_code(const uint8_t *p, const uint8_t *end, uint32_t *start_code)
Find the first start code in the buffer p.
uint32_t readBigEndianU32(const uint8_t *x)
MTV_PUBLIC const uint8_t * find_start_code_truncated(const uint8_t *p, const uint8_t *end, uint32_t *start_code)
By preserving the start_code value between subsequent calls, the caller can detect start codes across...