mkvtoolnix/tests/test-568dts_wav_14_in_16_detection_failures.rb
Moritz Bunkus b155c85aaf WAV reader: require 5 consecutive DTS headers during byte swap/14-in-16 detection
The original code tried all four possible combinations of byte swapping
yes/no and 14-in-16 yes/no and aborted as soon as a single DTS header
was found. This can be a false positive, though, and with one test file
provided by a user this has indeed been the case.

The new code does the same detection but requires five consecutive DTS
headers to be found before the detection is deemed to be successful.
2016-10-09 21:24:45 +02:00

8 lines
254 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_568dts_wav_14_in_16_detection_failures
describe "mkvmerge / DTS in WAV, failure in proper detection of byte swapping/14-in-16 packing"
test_merge "data/wav/05-labyrinth-path-13.wav"
test_merge "data/wav/06-labyrinth-path-14.wav"