aboutsummaryrefslogtreecommitdiff
path: root/common_audio/vad/vad_sp.c
diff options
context:
space:
mode:
Diffstat (limited to 'common_audio/vad/vad_sp.c')
-rw-r--r--common_audio/vad/vad_sp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common_audio/vad/vad_sp.c b/common_audio/vad/vad_sp.c
index d367c8b0af..d710a37907 100644
--- a/common_audio/vad/vad_sp.c
+++ b/common_audio/vad/vad_sp.c
@@ -79,7 +79,7 @@ int16_t WebRtcVad_FindMinimum(VadInstT* self,
age[i]++;
} else {
// Too old value. Remove from memory and shift larger values downwards.
- for (j = i; j < 16; j++) {
+ for (j = i; j < 15; j++) {
smallest_values[j] = smallest_values[j + 1];
age[j] = age[j + 1];
}