summaryrefslogtreecommitdiff
path: root/silk
diff options
context:
space:
mode:
Diffstat (limited to 'silk')
-rw-r--r--silk/VAD.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/silk/VAD.c b/silk/VAD.c
index 541e5056..d0cda521 100644
--- a/silk/VAD.c
+++ b/silk/VAD.c
@@ -312,6 +312,8 @@ void silk_VAD_GetNoiseLevels(
/* Initially faster smoothing */
if( psSilk_VAD->counter < 1000 ) { /* 1000 = 20 sec */
min_coef = silk_DIV32_16( silk_int16_MAX, silk_RSHIFT( psSilk_VAD->counter, 4 ) + 1 );
+ /* Increment frame counter */
+ psSilk_VAD->counter++;
} else {
min_coef = 0;
}
@@ -355,7 +357,4 @@ void silk_VAD_GetNoiseLevels(
/* Store as part of state */
psSilk_VAD->NL[ k ] = nl;
}
-
- /* Increment frame counter */
- psSilk_VAD->counter++;
}