First shot at automatically adjusting the "allocation trim" for stereo.

Also fixed a fixed-point breakage.
This commit is contained in:
Jean-Marc Valin 2010-10-19 14:24:50 -04:00
parent 5790fba762
commit c5792dee9d
2 changed files with 58 additions and 12 deletions

View file

@ -66,9 +66,10 @@
void clt_mdct_init(mdct_lookup *l,int N, int maxshift)
{
int i;
int N4;
int N4, N2;
kiss_twiddle_scalar *trig;
l->n = N;
N2 = N>>1;
N4 = N>>2;
l->maxshift = maxshift;
for (i=0;i<=maxshift;i++)