mkvtoolnix/tests/test-515aac_sampling_frequency_8000_is_not_sbr.rb
Moritz Bunkus 8cc0918d8f AAC: with 2 bytes codec-specific config only treat 24 KHz and 22.05 KHz as SBR
Certain SBR AAC tracks only have two-bytes long codec-specific
configuration data even though SBR normally requires five-bytes long
data. mkvmerge contains a heuristic for such cases that treats sampling
frequencies of <= 24000 Hz as another indicator for SBR.

However, this breaks in cases of low sampling frequencies like 8000 Hz
which are almost never SBR. This results in the wrong profile being
detected preventing mkvmerge from appending such tracks to track for
which the profile was detected correctly.

This change limits the heuristic to the two most common sampling
frequencies used for such broken SBR AAC files: 22050 Hz and 24000 Hz.

Fixes #1540.
2015-12-19 13:04:49 +01:00

6 lines
226 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_515aac_sampling_frequency_8000_is_not_sbr
describe "mkvmerge / AAC with 2 bytes codec-specific config, 8 KHz sampling frequency, is not SBR"
test_merge "data/mkv/bug1540-1.mkv + data/mkv/bug1540-2.mkv"