Uses DCHECK_GT() instead of DCHECK_LE().

BUG=
TEST=
TBR=tommi

Review URL: https://chromiumcodereview.appspot.com/10820042

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148683 0039d316-1c4b-4281-b951-d872f2087c98
parent 4a5ed6f4
......@@ -35,7 +35,7 @@ PCMWaveInAudioInputStream::PCMWaveInAudioInputStream(
num_buffers_(num_buffers),
buffer_(NULL),
channels_(params.channels()) {
DCHECK_LE(0, num_buffers_);
DCHECK_GT(num_buffers_, 0);
format_.wFormatTag = WAVE_FORMAT_PCM;
format_.nChannels = params.channels() > 2 ? 2 : params.channels();
format_.nSamplesPerSec = params.sample_rate();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment