mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Backed out changeset 3fe4db1f0877 (bug 1097849) for gtest assertions.
CLOSED TREE
This commit is contained in:
parent
85e724868a
commit
ff32e827a2
@ -158,9 +158,6 @@ OpusTrackEncoder::Init(int aChannels, int aSamplingRate)
|
||||
// let InterleaveTrackData downmix pcm data.
|
||||
mChannels = aChannels > MAX_CHANNELS ? MAX_CHANNELS : aChannels;
|
||||
|
||||
MOZ_ASSERT(aSamplingRate >= 8000 && aSamplingRate <= 192000,
|
||||
"Unreasonable sample rate for audio data.");
|
||||
|
||||
// According to www.opus-codec.org, creating an opus encoder requires the
|
||||
// sampling rate of source signal be one of 8000, 12000, 16000, 24000, or
|
||||
// 48000. If this constraint is not satisfied, we resample the input to 48kHz.
|
||||
|
@ -54,9 +54,6 @@ VorbisTrackEncoder::Init(int aChannels, int aSamplingRate)
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
}
|
||||
|
||||
MOZ_ASSERT(aSamplingRate >= 8000 && aSamplingRate <= 192000,
|
||||
"Unreasonable sample rate for audio data.");
|
||||
|
||||
// This monitor is used to wake up other methods that are waiting for encoder
|
||||
// to be completely initialized.
|
||||
ReentrantMonitorAutoEnter mon(mReentrantMonitor);
|
||||
|
Loading…
Reference in New Issue
Block a user