shithub: opus

Download patch

ref: 6c1f60494408fb4fd70ae4f6a1c788489bcc9c21
parent: 0e20ca096970ae9c515a35ae72fd637219241cf5
author: Jean-Marc Valin <[email protected]>
date: Mon Feb 11 11:17:42 EST 2008

Oops. Fixed spreading function for stereo

--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -99,7 +99,7 @@
 
    mdct_init(&st->mdct_lookup, 2*N);
    st->fft = kiss_fftr_alloc(MAX_PERIOD*C, 0, 0);
-   psydecay_init(&st->psy, MAX_PERIOD/2, st->Fs);
+   psydecay_init(&st->psy, MAX_PERIOD*C/2, st->Fs);
    
    st->window = celt_alloc(2*N*sizeof(float));
    st->in_mem = celt_alloc(N*C*sizeof(float));