Fix stability test
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Sat, 18 Feb 2017 22:04:14 +0000 (17:04 -0500)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Sat, 18 Feb 2017 22:04:14 +0000 (17:04 -0500)
silk/tests/test_unit_LPC_inv_pred_gain.c

index dcc61bd..67067ce 100644 (file)
@@ -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;