| Index: webrtc/common_audio/vad/vad_sp.c
|
| diff --git a/webrtc/common_audio/vad/vad_sp.c b/webrtc/common_audio/vad/vad_sp.c
|
| index a54be17daacae5eaf97ec09db0c71efc7d8e31e9..4a1cebb0d5b77d5356b49e6798cd37721937744b 100644
|
| --- a/webrtc/common_audio/vad/vad_sp.c
|
| +++ b/webrtc/common_audio/vad/vad_sp.c
|
| @@ -10,8 +10,7 @@
|
|
|
| #include "webrtc/common_audio/vad/vad_sp.h"
|
|
|
| -#include <assert.h>
|
| -
|
| +#include "webrtc/base/checks.h"
|
| #include "webrtc/common_audio/signal_processing/include/signal_processing_library.h"
|
| #include "webrtc/common_audio/vad/vad_core.h"
|
| #include "webrtc/typedefs.h"
|
| @@ -72,7 +71,7 @@ int16_t WebRtcVad_FindMinimum(VadInstT* self,
|
| int16_t* age = &self->index_vector[offset];
|
| int16_t* smallest_values = &self->low_value_vector[offset];
|
|
|
| - assert(channel < kNumChannels);
|
| + RTC_DCHECK_LT(channel, kNumChannels);
|
|
|
| // Each value in |smallest_values| is getting 1 loop older. Update |age|, and
|
| // remove old values.
|
|
|