Files
Dylan M. Taylorandvangel76 9a08c77871 craft-media: MPEG-TS PCR from the PMT's PCR_PID, one clock epoch for program streams, stricter PMT and duplicate handling (#993)
- 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>
2026-11-11 19:47:35 -05:00
..