From b1d38ed32e236e224ea0b957762ccb458cadcd5b Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Fri, 22 Jul 2016 15:58:30 -0400 Subject: [PATCH] Avoiding an overflow in the LTP quantization Reduces the XX values to avoid an overflow in silk_VQ_WMat_EC(), even in floating-point. --- silk/tuning_parameters.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/silk/tuning_parameters.h b/silk/tuning_parameters.h index 1625c3ee..d70275fd 100644 --- a/silk/tuning_parameters.h +++ b/silk/tuning_parameters.h @@ -57,7 +57,7 @@ extern "C" #define MAX_SUM_LOG_GAIN_DB 250.0f /* LTP analysis defines */ -#define LTP_CORR_INV_MAX 0.015f +#define LTP_CORR_INV_MAX 0.03f /***********************/ /* High pass filtering */