mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-29 06:15:24 +00:00
TrueHD/MLP packetizer: don't attempt dialog volume normalization removal for MLP
This commit is contained in:
parent
f265565c42
commit
9d26ac99ea
3
NEWS.md
3
NEWS.md
@ -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
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user