mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-12 08:52:32 +00:00
- The PCR range follows the PID the PMT names, in packet order: PCRs seen before the first PMT are kept when it confirms their PID, and the clock continues across a later change of PCR_PID. - Program-stream elementary streams unwrap their timestamps on their own but share the first wrap epoch, so two streams first seen on either side of the 33-bit wrap are no longer a whole wrap apart. - After a wrap, a large forward jump is followed instead of being taken for a late pre-wrap timestamp. - A PMT must carry the selected program's number, and its CRC is checked before the same-version shortcut. - Packets with the transport error indicator and repeated packets are dropped (a packet that signals a discontinuity never is), and scrambled payloads are skipped. Ported from storytold/filmcraft#1451. Co-authored-by: vangel76 <vangel1976@googlemail.com>