mkvtoolnix/tests/test-629mpeg_ts_broken_pes_packets.rb
Moritz Bunkus 6b43072ed1 MPEG TS reader: only parse TS payload as PES if payload starts with PES start code
A transport stream packet doesn't have to contain a packetized
elementary stream packet. If a TS packet is treated as such and
doesn't actually contain a PES packet, then trying to extract
timestamps from it will only result in invalid timestamps.

Fixes #2193.
2018-01-13 21:29:09 +01:00

6 lines
147 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_629mpeg_ts_broken_pes_packets
describe "mkvmerge / MPEG TS, broken PES packets"
test_merge "data/ts/broken_pes_packets.ts"