aboutsummaryrefslogtreecommitdiffstats
path: root/codecs/gsm/src/long_term.c
diff options
context:
space:
mode:
Diffstat (limited to 'codecs/gsm/src/long_term.c')
-rwxr-xr-xcodecs/gsm/src/long_term.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/codecs/gsm/src/long_term.c b/codecs/gsm/src/long_term.c
index fd67bda19..ee01c146b 100755
--- a/codecs/gsm/src/long_term.c
+++ b/codecs/gsm/src/long_term.c
@@ -13,7 +13,9 @@
#include "gsm.h"
#include "proto.h"
-
+#ifdef K6OPT
+#include "k6opt.h"
+#endif
/*
* 4.2.11 .. 4.2.12 LONG TERM PREDICTOR (LTP) SECTION
*/
@@ -197,6 +199,9 @@ static void Calculation_of_the_LTP_parameters P4((d,dp,bc_out,Nc_out),
/* Search for the maximum cross-correlation and coding of the LTP lag
*/
+# ifdef K6OPT
+ L_max = k6maxcc(wt,dp,&Nc);
+# else
L_max = 0;
Nc = 40; /* index for the maximum cross-correlation */
@@ -234,7 +239,7 @@ static void Calculation_of_the_LTP_parameters P4((d,dp,bc_out,Nc_out),
L_max = L_result;
}
}
-
+# endif
*Nc_out = Nc;
L_max <<= 1;