mkvtoolnix/tests/test-652quicktime_pcm_in24.rb
Moritz Bunkus 929c4485d7
MP4/QuickTime reader: handle PCM with in24 FourCC
Seems the sample file contains "16" as the number of bits per sample
in the audio track headers — which is obviously wrong for `in24`,
which uses 24 bits per sample. So force it to 24 for that FourCC.

Fixes #2391.
2018-10-01 10:37:40 +02:00

12 lines
328 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_652quicktime_pcm_in24
describe "mkvmerge / QuickTime with PCM with FourCC 'in24'"
file = "data/mp4/prores_apch-and-pcm_in24-short.mov"
test_merge file, :args => "--no-video", :keep_tmp => true
test "bitdepth is 24" do
identify_json(file)["tracks"][1]["properties"]["audio_bits_per_sample"] == 24
end