Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Unified Diff: webrtc/modules/audio_processing/aecm/aecm_core.cc

Issue 2320053003: webrtc/modules/audio_processing: Use RTC_DCHECK() instead of assert() (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/aecm/aecm_core.cc
diff --git a/webrtc/modules/audio_processing/aecm/aecm_core.cc b/webrtc/modules/audio_processing/aecm/aecm_core.cc
index a17220dbd76b11a678a1dfa4a811f5ec12561029..97f91a22541d5fd4a9eafe8e013d12eb4bc8384b 100644
--- a/webrtc/modules/audio_processing/aecm/aecm_core.cc
+++ b/webrtc/modules/audio_processing/aecm/aecm_core.cc
@@ -10,7 +10,6 @@
#include "webrtc/modules/audio_processing/aecm/aecm_core.h"
-#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
@@ -24,6 +23,7 @@ extern "C" {
#include "webrtc/system_wrappers/include/cpu_features_wrapper.h"
}
+#include "webrtc/base/checks.h"
#include "webrtc/typedefs.h"
#ifdef AEC_DEBUG
@@ -193,7 +193,7 @@ const uint16_t* WebRtcAecm_AlignedFarend(AecmCore* self,
int* far_q,
int delay) {
int buffer_position = 0;
- assert(self != NULL);
+ RTC_DCHECK(self);
buffer_position = self->far_history_pos - delay;
// Check buffer position
« no previous file with comments | « webrtc/modules/audio_processing/aec/aec_resampler.cc ('k') | webrtc/modules/audio_processing/aecm/aecm_core_c.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698