Index: webrtc/modules/audio_coding/codecs/isac/fix/source/isacfix.c |
diff --git a/webrtc/modules/audio_coding/codecs/isac/fix/source/isacfix.c b/webrtc/modules/audio_coding/codecs/isac/fix/source/isacfix.c |
index e7905ae81fa90d22a4b3878eff075cab3f761d1d..39ae8beeff7dde4d6d8cab859d131e664eb6711b 100644 |
--- a/webrtc/modules/audio_coding/codecs/isac/fix/source/isacfix.c |
+++ b/webrtc/modules/audio_coding/codecs/isac/fix/source/isacfix.c |
@@ -17,9 +17,9 @@ |
#include "webrtc/modules/audio_coding/codecs/isac/fix/include/isacfix.h" |
-#include <assert.h> |
#include <stdlib.h> |
+#include "webrtc/base/checks.h" |
#include "webrtc/modules/audio_coding/codecs/isac/fix/source/bandwidth_estimator.h" |
#include "webrtc/modules/audio_coding/codecs/isac/fix/source/codec.h" |
#include "webrtc/modules/audio_coding/codecs/isac/fix/source/entropy_coding.h" |
@@ -1113,8 +1113,8 @@ int16_t WebRtcIsacfix_Control(ISACFIX_MainStruct *ISAC_main_inst, |
void WebRtcIsacfix_SetInitialBweBottleneck(ISACFIX_MainStruct* ISAC_main_inst, |
int bottleneck_bits_per_second) { |
ISACFIX_SubStruct* inst = (ISACFIX_SubStruct*)ISAC_main_inst; |
- assert(bottleneck_bits_per_second >= 10000 && |
- bottleneck_bits_per_second <= 32000); |
+ RTC_DCHECK_GE(bottleneck_bits_per_second, 10000); |
+ RTC_DCHECK_LE(bottleneck_bits_per_second, 32000); |
inst->bwestimator_obj.sendBwAvg = ((uint32_t)bottleneck_bits_per_second) << 7; |
} |
@@ -1539,13 +1539,13 @@ void WebRtcIsacfix_version(char *version) |
void WebRtcIsacfix_GetBandwidthInfo(ISACFIX_MainStruct* ISAC_main_inst, |
IsacBandwidthInfo* bwinfo) { |
ISACFIX_SubStruct* inst = (ISACFIX_SubStruct*)ISAC_main_inst; |
- assert(inst->initflag & 1); // Decoder initialized. |
+ RTC_DCHECK_NE(0, inst->initflag & 1); // Decoder initialized. |
WebRtcIsacfixBw_GetBandwidthInfo(&inst->bwestimator_obj, bwinfo); |
} |
void WebRtcIsacfix_SetBandwidthInfo(ISACFIX_MainStruct* ISAC_main_inst, |
const IsacBandwidthInfo* bwinfo) { |
ISACFIX_SubStruct* inst = (ISACFIX_SubStruct*)ISAC_main_inst; |
- assert(inst->initflag & 2); // Encoder initialized. |
+ RTC_DCHECK_NE(0, inst->initflag & 2); // Encoder initialized. |
WebRtcIsacfixBw_SetBandwidthInfo(&inst->bwestimator_obj, bwinfo); |
} |