зеркало из https://github.com/mozilla/gecko-dev.git
Bug 941283 - OpusTrackEncoder should write pre-skip at the original samplerate. r=rillian
This commit is contained in:
Родитель
43b1a92bda
Коммит
1e65bc6c2b
|
@ -212,8 +212,9 @@ OpusTrackEncoder::GetMetadata()
|
|||
}
|
||||
|
||||
// The ogg time stamping and pre-skip is always timed at 48000.
|
||||
SerializeOpusIdHeader(mChannels, mLookahead*(kOpusSamplingRate/mSamplingRate),
|
||||
mSamplingRate, &meta->mIdHeader);
|
||||
SerializeOpusIdHeader(mChannels, mLookahead * (kOpusSamplingRate /
|
||||
GetOutputSampleRate()), mSamplingRate,
|
||||
&meta->mIdHeader);
|
||||
|
||||
nsCString vendor;
|
||||
vendor.AppendASCII(opus_get_version_string());
|
||||
|
|
Загрузка…
Ссылка в новой задаче