mkvtoolnix/tests/test-0751dts_in_wav_with_dts_file_name_extension.rb
Moritz Bunkus 66740a63b9
mkvmerge: prefer unambiguously detected file types over detection by extension
Can prevent mis-detection if the file name has the wrong
extension. For example, a WAV file with DTS inside but with an
extension of `.dts` might be detected as the wrong type of DTS.

Fixes #3462.
2023-01-06 23:12:58 +01:00

13 lines
307 B
Ruby
Executable File

#!/usr/bin/ruby -w
src = "data/wav/wav_with_dts_extension.dts"
# T_751dts_in_wav_with_dts_file_name_extension
describe "mkvmerge / WAV with DTS inside but with file name extension 'dts'"
test "identification" do
%r{wav}i.match(identify_json(src)["container"]["type"]) ? "ok" : fail
end
test_merge src