mkvtoolnix/tests/test-298ts_language.rb
Moritz Bunkus 4442cd5673 MPEG TS: rewrite packet parsing
The old code was pretty convoluted and hard to reason about. On top of
that it didn't buffer PES packets properly before trying to parse the
PES headers. This lead to accesses beyond the end of the buffer.
2016-07-09 17:24:20 +02:00

11 lines
245 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_298ts_language
describe "mkvmerge / MPEG transport streams: language tags"
test "detected languages" do
identify_json("data/ts/blue_planet.ts")["tracks"].
map { |t| t["properties"]["language"] }.
join("+")
end