Index: webrtc/modules/audio_processing/rms_level.cc |
diff --git a/webrtc/modules/audio_processing/rms_level.cc b/webrtc/modules/audio_processing/rms_level.cc |
index 70c4422d34bae2c5f9542162da6b2d98a65f01de..957a7b5839b9d607f5120567d2b67939333cdc2e 100644 |
--- a/webrtc/modules/audio_processing/rms_level.cc |
+++ b/webrtc/modules/audio_processing/rms_level.cc |
@@ -10,9 +10,10 @@ |
#include "webrtc/modules/audio_processing/rms_level.h" |
-#include <assert.h> |
#include <math.h> |
+#include "webrtc/base/checks.h" |
+ |
namespace webrtc { |
static const float kMaxSquaredLevel = 32768 * 32768; |
@@ -49,7 +50,7 @@ int RMSLevel::RMS() { |
float rms = sum_square_ / (sample_count_ * kMaxSquaredLevel); |
// 20log_10(x^0.5) = 10log_10(x) |
rms = 10 * log10(rms); |
- assert(rms <= 0); |
+ RTC_DCHECK_LE(rms, 0); |
if (rms < -kMinLevel) |
rms = -kMinLevel; |