Index: webrtc/modules/audio_processing/transient/moving_moments.cc |
diff --git a/webrtc/modules/audio_processing/transient/moving_moments.cc b/webrtc/modules/audio_processing/transient/moving_moments.cc |
index 5701a0027097b36383c4eca75604c81e52834748..bca987feb77882f5050ed7c1057688d09181769a 100644 |
--- a/webrtc/modules/audio_processing/transient/moving_moments.cc |
+++ b/webrtc/modules/audio_processing/transient/moving_moments.cc |
@@ -32,7 +32,10 @@ MovingMoments::~MovingMoments() {} |
void MovingMoments::CalculateMoments(const float* in, size_t in_length, |
float* first, float* second) { |
- RTC_DCHECK(in && in_length > 0 && first && second); |
+ RTC_DCHECK(in); |
+ RTC_DCHECK_GT(in_length, 0); |
+ RTC_DCHECK(first); |
+ RTC_DCHECK(second); |
for (size_t i = 0; i < in_length; ++i) { |
const float old_value = queue_.front(); |