shithub: opus

Download patch

ref: b1d38ed32e236e224ea0b957762ccb458cadcd5b
parent: bb224a4b8e5419194961615d095cbb7cafe1323e
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Fri Jul 22 11:58:30 EDT 2016

Avoiding an overflow in the LTP quantization

Reduces the XX values to avoid an overflow in silk_VQ_WMat_EC(), even in
floating-point.

--- a/silk/tuning_parameters.h
+++ b/silk/tuning_parameters.h
@@ -57,7 +57,7 @@
 #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 */