mkvtoolnix/tests/test-583dvbsub_four_bytes_codecprivate.rb
Moritz Bunkus e1b74c6e6f
DVB subs: don't fix 4 byte CodecPrivate before identification
The identification should show what's actually there in the file, not
the fixed-up data.
2018-06-09 12:35:32 +02:00

16 lines
443 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_583dvbsub_four_bytes_codecprivate
describe "mkvmerge / DVB subtitles in Matroska with CodecPrivate missing the subtitling type byte"
file = "data/subtitles/dvbsub/codecprivate_four_bytes.mkv"
test "codec private length" do
identify_json(file)["tracks"].
select { |t| t["codec"] == "DVBSUB" }.
map { |t| t["properties"]["codec_private_length"].to_s }.
join('+')
end
test_merge file, :args => "-A -D"