Using overlap=shortMdctSize even for 2.5 ms frames.
And fixed a post-filter bug for that special case.
This commit is contained in:
parent
546dfa1959
commit
70d30ffc09
2 changed files with 36 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue