mkvtoolnix/tests/test-596mpeg_ts_aac_loas_latm_misdetected_as_adts.rb
Moritz Bunkus c2cc3a788a MPEG TS reader: force AAC framer's multiplex mode to the detected mode
During file type detection the MPEG TS reader uses the AAC parser to
detect the multiplex mode. Later on it creates the AAC framer which in
turn contains its own instance of an AAC parser. This new instance
does its own multiplex mode detection.

For LOAS/LATM the detection can only succeed if the program mux
configuration is found. If it is not part of the first first PES
packet, then the framer's instance may get the detection wrong: it
does find LOAS/LATM headers, but as the program mux configuration
hasn't been parsed yet it'll continue detection and often happen over
ADTS headers instead.

The second detection is not only harmful, it's also superfluous as the
result is already known to the upper layer (the MPEG TS
reader). Therefore pass that information through from the reader via
the framer to the framer's parser.

Fixes #1957.
2017-04-24 17:03:24 +02:00

6 lines
251 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_596mpeg_ts_aac_loas_latm_misdetected_as_adts
describe "mkvmerge / MPEG TS AAC with LOAS/LATM multiplex detected as ADTS multiplex"
test_merge "data/ts/aac_loas_latm_misdetected_as_adts.ts", :args => "--no-subtitles --no-video"