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

Unified Diff: webrtc/modules/audio_coding/codecs/opus/opus_interface.c

Issue 2262173002: RTC_CHECK and RTC_DCHECK macros for C (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
« no previous file with comments | « webrtc/base/checks.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/codecs/opus/opus_interface.c
diff --git a/webrtc/modules/audio_coding/codecs/opus/opus_interface.c b/webrtc/modules/audio_coding/codecs/opus/opus_interface.c
index 99057355330694df758b9249d09296304ed62bb4..d79a9ad290842db28ab62a14867bfe0a21684c8b 100644
--- a/webrtc/modules/audio_coding/codecs/opus/opus_interface.c
+++ b/webrtc/modules/audio_coding/codecs/opus/opus_interface.c
@@ -9,9 +9,10 @@
*/
#include "webrtc/modules/audio_coding/codecs/opus/opus_interface.h"
+
+#include "webrtc/base/checks.h"
#include "webrtc/modules/audio_coding/codecs/opus/opus_inst.h"
-#include <assert.h>
#include <stdlib.h>
#include <string.h>
@@ -51,7 +52,7 @@ int16_t WebRtcOpus_EncoderCreate(OpusEncInst** inst,
}
OpusEncInst* state = calloc(1, sizeof(OpusEncInst));
- assert(state);
+ RTC_DCHECK(state);
int error;
state->encoder = opus_encoder_create(48000, (int)channels, opus_app,
« no previous file with comments | « webrtc/base/checks.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698