Stereo pitch search no longer requires twice the memory/complexity.

This commit is contained in:
Jean-Marc Valin 2008-03-01 20:14:20 +11:00
parent 86cb7e8600
commit a556694e12
2 changed files with 13 additions and 11 deletions

View file

@ -103,8 +103,8 @@ CELTEncoder *celt_encoder_create(const CELTMode *mode)
ec_byte_writeinit(&st->buf);
ec_enc_init(&st->enc,&st->buf);
st->fft = kiss_fftr_alloc(MAX_PERIOD*C, 0, 0);
psydecay_init(&st->psy, MAX_PERIOD*C/2, st->mode->Fs);
st->fft = kiss_fftr_alloc(MAX_PERIOD, 0, 0);
psydecay_init(&st->psy, MAX_PERIOD/2, st->mode->Fs);
st->in_mem = celt_alloc(N*C*sizeof(celt_sig_t));
st->mdct_overlap = celt_alloc(N*C*sizeof(celt_sig_t));