mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-10-22 07:21:21 +00:00
66740a63b9
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.
13 lines
307 B
Ruby
Executable File
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
|