| 510 | } |
| 511 | |
| 512 | static int check_ts_sync(const uint8_t *buf) |
| 513 | { |
| 514 | // must have initial sync byte & a legal adaptation ctrl |
| 515 | return (buf[0] == 0x47) && (((buf[3] & 0x30) >> 4) > 0); |
| 516 | } |
| 517 | |
| 518 | static int have_ts_sync(const uint8_t *buf, int psize, int count) |
| 519 | { |