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

Unified Diff: webrtc/modules/audio_coding/codecs/isac/fix/source/filterbanks.c

Issue 2274083002: Replace calls to assert() with RTC_DCHECK_*() in .c code (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 4 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_coding/codecs/isac/fix/source/filterbanks.c
diff --git a/webrtc/modules/audio_coding/codecs/isac/fix/source/filterbanks.c b/webrtc/modules/audio_coding/codecs/isac/fix/source/filterbanks.c
index 2e92578cf7f2d97b6186fc6ec5d738e30978bd13..ce479e2777da059d4805fe0f48d18994144fffc4 100644
--- a/webrtc/modules/audio_coding/codecs/isac/fix/source/filterbanks.c
+++ b/webrtc/modules/audio_coding/codecs/isac/fix/source/filterbanks.c
@@ -20,11 +20,10 @@
#include "filterbank_internal.h"
-#include <assert.h>
-
#include "codec.h"
#include "filterbank_tables.h"
#include "settings.h"
+#include "webrtc/base/checks.h"
// Declare a function pointer.
AllpassFilter2FixDec16 WebRtcIsacfix_AllpassFilter2FixDec16;
@@ -44,7 +43,7 @@ void WebRtcIsacfix_AllpassFilter2FixDec16C(
int32_t a = 0, b = 0;
// Assembly file assumption.
- assert(length % 2 == 0);
+ RTC_DCHECK_EQ(0, length % 2);
for (n = 0; n < length; n++) {
// Process channel 1:

Powered by Google App Engine
This is Rietveld 408576698