From e852ab420beafad4f4f538039e820e702e15def0 Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Wed, 18 Dec 2013 11:00:46 -0800 Subject: [PATCH] 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. --- src/output/p_opus.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/output/p_opus.cpp b/src/output/p_opus.cpp index 6654a63a2..eb547d5a6 100644 --- a/src/output/p_opus.cpp +++ b/src/output/p_opus.cpp @@ -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);