shithub: opus

Download patch

ref: e3187444692195957eb66989622c7b1ad8448b06
parent: b347696a21ba26113e5a8d356347fdac1a02bced
author: Jean-Marc Valin <[email protected]>
date: Fri Jan 31 10:38:27 EST 2014

Skips comb filter overlap when the parameters didn't change.

--- a/celt/celt.c
+++ b/celt/celt.c
@@ -199,6 +199,9 @@
    x2 = x[-T1  ];
    x3 = x[-T1-1];
    x4 = x[-T1-2];
+   /* If the filter didn't change, we don't need the overlap */
+   if (g0==g1 && T0==T1 && tapset0==tapset1)
+      overlap=0;
    for (i=0;i<overlap;i++)
    {
       opus_val16 f;