Index: webrtc/modules/audio_processing/high_pass_filter_impl.cc |
diff --git a/webrtc/modules/audio_processing/high_pass_filter_impl.cc b/webrtc/modules/audio_processing/high_pass_filter_impl.cc |
index 795dcbd21c7f9ba7bde203fc98e687059e2a5e25..0db794f94ef04cdb486fa973fbd133915ff878d3 100644 |
--- a/webrtc/modules/audio_processing/high_pass_filter_impl.cc |
+++ b/webrtc/modules/audio_processing/high_pass_filter_impl.cc |
@@ -89,6 +89,7 @@ HighPassFilterImpl::HighPassFilterImpl(rtc::CriticalSection* crit) |
HighPassFilterImpl::~HighPassFilterImpl() {} |
void HighPassFilterImpl::Initialize(int channels, int sample_rate_hz) { |
+ RTC_DCHECK_LE(0, channels); |
std::vector<rtc::scoped_ptr<BiquadFilter>> new_filters(channels); |
for (int i = 0; i < channels; i++) { |
new_filters[i].reset(new BiquadFilter(sample_rate_hz)); |
@@ -98,6 +99,7 @@ void HighPassFilterImpl::Initialize(int channels, int sample_rate_hz) { |
} |
void HighPassFilterImpl::ProcessCaptureAudio(AudioBuffer* audio) { |
+ RTC_DCHECK(audio); |
rtc::CritScope cs(crit_); |
if (!enabled_) { |
return; |