summaryrefslogtreecommitdiff
path: root/silk
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2017-02-18 17:04:14 -0500
committerJean-Marc Valin <jmvalin@jmvalin.ca>2017-02-18 17:04:14 -0500
commitabc1a771fc67051b7b60a046d61446b2d6b97f7a (patch)
tree4c51ae97fa13d6028615f3f26461a737ede05361 /silk
parent0834ad61b171dc07c5653244a29632984643abdd (diff)
downloadopus-abc1a771fc67051b7b60a046d61446b2d6b97f7a.tar.gz
Fix stability test
Diffstat (limited to 'silk')
-rw-r--r--silk/tests/test_unit_LPC_inv_pred_gain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/silk/tests/test_unit_LPC_inv_pred_gain.c b/silk/tests/test_unit_LPC_inv_pred_gain.c
index dcc61bd8..67067cea 100644
--- a/silk/tests/test_unit_LPC_inv_pred_gain.c
+++ b/silk/tests/test_unit_LPC_inv_pred_gain.c
@@ -77,7 +77,7 @@ int check_stability(opus_int16 *A_Q12, int order) {
if( ( i & 0x7 ) == 0 ) {
double amp = 0;
for( j = 0; j < order; j++ ) {
- amp += fabs(y[0]);
+ amp += fabs(y[j]);
}
if( amp < 0.00001 ) {
return 1;