MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / check_ts_sync

Function check_ts_sync

libhb/bd.c:1022–1026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1020}
1021
1022static int check_ts_sync(const uint8_t *buf)
1023{
1024 // must have initial sync byte, no scrambling & a legal adaptation ctrl
1025 return (buf[0] == 0x47) && ((buf[3] >> 6) == 0) && ((buf[3] >> 4) > 0);
1026}
1027
1028static int have_ts_sync(const uint8_t *buf, int psize)
1029{

Callers 1

have_ts_syncFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected