oops. EXTEND32() wasn't needed here.
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Sun, 26 Nov 2006 10:02:33 +0000 (10:02 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Sun, 26 Nov 2006 10:02:33 +0000 (10:02 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@12146 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/sb_celp.c

index 7014967..7a03240 100644 (file)
@@ -436,7 +436,7 @@ int sb_encode(void *state, void *vin, SpeexBits *bits)
       ALLOC(w_sig, st->windowSize, spx_word16_t);
       /* Window for analysis */
       for (i=0;i<st->windowSize;i++)
-         w_sig[i] = EXTRACT16(SHR32(MULT16_16(EXTRACT16(SHR32(EXTEND32(st->high[i]),SIG_SHIFT)),st->window[i]),SIG_SHIFT));
+         w_sig[i] = EXTRACT16(SHR32(MULT16_16(EXTRACT16(SHR32(st->high[i],SIG_SHIFT)),st->window[i]),SIG_SHIFT));
 
       /* Compute auto-correlation */
       _spx_autocorr(w_sig, st->autocorr, st->lpcSize+1, st->windowSize);