TrueHD/MLP packetizer: don't attempt dialog volume normalization removal for MLP

This commit is contained in:
Moritz Bunkus 2018-06-13 22:05:45 +02:00
parent f265565c42
commit 9d26ac99ea
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85
2 changed files with 4 additions and 1 deletions

View File

@ -13,6 +13,9 @@
is the HEVC analog to what was fixed for AVC in #2325.
* mkvmerge: MLP code: fixed various issues preventing MLP from being parsed
correctly. Fixes #2326.
* mkvmerge: TrueHD/MLP packetizer; dialog volume normalization removal isn't
attempted if the track is an MLP track as the operation is only supported
for TrueHD, not MLP.
# Version 24.0.0 "Beyond The Pale" 2018-06-10

View File

@ -71,7 +71,7 @@ truehd_packetizer_c::process_framed(mtx::truehd::frame_cptr const &frame,
auto timestamp = m_timestamp_calculator.get_next_timestamp(samples).to_ns();
auto duration = m_timestamp_calculator.get_duration(samples).to_ns();
if (frame->is_sync() && m_remove_dialog_normalization_gain)
if (frame->is_sync() && frame->is_truehd() && m_remove_dialog_normalization_gain)
mtx::truehd::remove_dialog_normalization_gain(frame->m_data->get_buffer(), frame->m_data->get_size());
add_packet(std::make_shared<packet_t>(frame->m_data, timestamp, duration, frame->is_sync() ? -1 : m_ref_timestamp));