Backed out changeset 3fe4db1f0877 (bug 1097849) for gtest assertions.

CLOSED TREE
This commit is contained in:
Ryan VanderMeulen 2014-11-12 15:15:49 -05:00
parent 85e724868a
commit ff32e827a2
2 changed files with 0 additions and 6 deletions

View File

@ -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.

View File

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