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:
Ralph Giles 2013-12-18 11:00:46 -08:00 committed by Moritz Bunkus
parent 1a350a9573
commit e852ab420b

View File

@ -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);