From standard, I miss the following checks:
- Is there payload in this TS packet?
- Does a new PES packet start with this TS packet?
(payload_unit_start_indicator)
- Does the payload start with 00 00 01 PES header prefix?
- Does the stream_id refer to an A/V stream with full headers?
(well, if VideoPid is valid, this should be expected)
- Is the PTS field present in the PES header?
With these assumptions, Data+4+off points to the PES header, and PESheader+9 points to the PTS.
Cheers,
Udo
Thanks!!! Now I know what to do at this WE. :-)
Patrick