mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-12 21:21:05 +00:00
Fix seek pre-roll and codec delay mapping.
The muxer was incorrectly writing the 'pre-skip' header from the Ogg Opus header as the SeekPreRoll element instead of the CodecDelay element, and vice-versa.
This commit is contained in:
parent
1a350a9573
commit
e852ab420b
@ -40,8 +40,8 @@ void
|
||||
opus_packetizer_c::set_headers() {
|
||||
set_codec_id((boost::format("%1%") % MKV_A_OPUS).str());
|
||||
|
||||
set_track_seek_pre_roll(timecode_c::samples(m_id_header.pre_skip, 48000));
|
||||
set_codec_delay(timecode_c::ms(80));
|
||||
set_codec_delay(timecode_c::samples(m_id_header.pre_skip, 48000));
|
||||
set_track_seek_pre_roll(timecode_c::ms(80));
|
||||
|
||||
set_audio_sampling_freq(m_id_header.input_sample_rate);
|
||||
set_audio_channels(m_id_header.channels);
|
||||
|
Loading…
Reference in New Issue
Block a user