Proper use of logN and logM for the offsets

This commit is contained in:
Jean-Marc Valin 2010-05-11 07:34:24 -04:00
parent c40d6f97a2
commit aead79b133
3 changed files with 7 additions and 4 deletions

View file

@ -379,7 +379,7 @@ CELTMode *celt_mode_create(celt_int32 Fs, int frame_size, int *error)
goto failure;
for (i=0;i<mode->nbEBands;i++)
logN[i] = log2_frac(mode->nbShortMdcts*(mode->eBands[i+1]-mode->eBands[i]), BITRES);
logN[i] = log2_frac(mode->eBands[i+1]-mode->eBands[i], BITRES);
mode->logN = logN;
#endif /* !STATIC_MODES */