Using overlap=shortMdctSize even for 2.5 ms frames.

And fixed a post-filter bug for that special case.
This commit is contained in:
Jean-Marc Valin 2010-12-13 13:50:29 -05:00
parent 546dfa1959
commit 70d30ffc09
2 changed files with 36 additions and 13 deletions

View file

@ -365,11 +365,7 @@ CELTMode *celt_mode_create(celt_int32 Fs, int frame_size, int *error)
mode->effEBands--;
/* Overlap must be divisible by 4 */
if (mode->nbShortMdcts > 1)
mode->overlap = (mode->shortMdctSize>>2)<<2;
else
mode->overlap = (frame_size>>3)<<2;
mode->overlap = ((mode->shortMdctSize>>2)<<2);
compute_allocation_table(mode, res);
if (mode->allocVectors==NULL)