Skip to content
Snippets Groups Projects
Commit e3187444 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

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

parent b347696a
No related branches found
No related tags found
No related merge requests found
...@@ -199,6 +199,9 @@ void comb_filter(opus_val32 *y, opus_val32 *x, int T0, int T1, int N, ...@@ -199,6 +199,9 @@ void comb_filter(opus_val32 *y, opus_val32 *x, int T0, int T1, int N,
x2 = x[-T1 ]; x2 = x[-T1 ];
x3 = x[-T1-1]; x3 = x[-T1-1];
x4 = x[-T1-2]; 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++) for (i=0;i<overlap;i++)
{ {
opus_val16 f; opus_val16 f;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment