oops. Un-broke the LPC analysis.
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Wed, 5 Oct 2005 23:21:16 +0000 (23:21 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Wed, 5 Oct 2005 23:21:16 +0000 (23:21 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@10131 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/sb_celp.c

index ba7969f..4d3f7f3 100644 (file)
@@ -445,8 +445,8 @@ int sb_encode(void *state, void *vin, SpeexBits *bits)
       /* Compute auto-correlation */
       _spx_autocorr(w_sig, st->autocorr, st->lpcSize+1, st->windowSize);
    }
-
-   st->autocorr[0] = (spx_word16_t)(st->autocorr[0]*st->lpc_floor); /* Noise floor in auto-correlation domain */
+   
+   st->autocorr[0] = ADD16(st->autocorr[0],(spx_word16_t) (st->autocorr[0]*st->lpc_floor)); /* Noise floor in auto-correlation domain */
 
    /* Lag windowing: equivalent to filtering in the power-spectrum domain */
    for (i=0;i<st->lpcSize+1;i++)