shithub: libopusenc

Download patch

ref: 8cdeac9e32be0ea52fddccb1787dea446d552e4c
parent: 01aecb285ae29da3639a32ed51238be6d6fb6281
author: Jean-Marc Valin <[email protected]>
date: Sun May 7 08:11:41 EDT 2017

Fixing window generation

Initialization was slightly off

--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -884,7 +884,7 @@
   }
   {
     /* Generate Window using a resonating IIR aka Goertzel's algorithm. */
-    float m0=1, m1=1;
+    float m0=1, m1=.5*LPC_GOERTZEL_CONST;
     float a1 = LPC_GOERTZEL_CONST;
     window[0] = 1;
     for (i=1;i<LPC_PADDING;i++) {