Index: webrtc/common_audio/lapped_transform.cc |
diff --git a/webrtc/common_audio/lapped_transform.cc b/webrtc/common_audio/lapped_transform.cc |
index 525450d0cfc6bdfd025177f1d6490f8da2015eeb..c01f1d9d8c6c334d54ad734908d94ab5e10567a9 100644 |
--- a/webrtc/common_audio/lapped_transform.cc |
+++ b/webrtc/common_audio/lapped_transform.cc |
@@ -24,9 +24,9 @@ void LappedTransform::BlockThunk::ProcessBlock(const float* const* input, |
int num_input_channels, |
int num_output_channels, |
float* const* output) { |
- CHECK_EQ(num_input_channels, parent_->num_in_channels_); |
- CHECK_EQ(num_output_channels, parent_->num_out_channels_); |
- CHECK_EQ(parent_->block_length_, num_frames); |
+ RTC_CHECK_EQ(num_input_channels, parent_->num_in_channels_); |
+ RTC_CHECK_EQ(num_output_channels, parent_->num_out_channels_); |
+ RTC_CHECK_EQ(parent_->block_length_, num_frames); |
for (int i = 0; i < num_input_channels; ++i) { |
memcpy(parent_->real_buf_.Row(i), input[i], |
@@ -37,7 +37,7 @@ void LappedTransform::BlockThunk::ProcessBlock(const float* const* input, |
size_t block_length = RealFourier::ComplexLength( |
RealFourier::FftOrder(num_frames)); |
- CHECK_EQ(parent_->cplx_length_, block_length); |
+ RTC_CHECK_EQ(parent_->cplx_length_, block_length); |
parent_->block_processor_->ProcessAudioBlock(parent_->cplx_pre_.Array(), |
num_input_channels, |
parent_->cplx_length_, |
@@ -83,13 +83,13 @@ LappedTransform::LappedTransform(int num_in_channels, |
cplx_post_(num_out_channels, |
cplx_length_, |
RealFourier::kFftBufferAlignment) { |
- CHECK(num_in_channels_ > 0 && num_out_channels_ > 0); |
- CHECK_GT(block_length_, 0u); |
- CHECK_GT(chunk_length_, 0u); |
- CHECK(block_processor_); |
+ RTC_CHECK(num_in_channels_ > 0 && num_out_channels_ > 0); |
+ RTC_CHECK_GT(block_length_, 0u); |
+ RTC_CHECK_GT(chunk_length_, 0u); |
+ RTC_CHECK(block_processor_); |
// block_length_ power of 2? |
- CHECK_EQ(0u, block_length_ & (block_length_ - 1)); |
+ RTC_CHECK_EQ(0u, block_length_ & (block_length_ - 1)); |
} |
void LappedTransform::ProcessChunk(const float* const* in_chunk, |