...
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Thu, 13 Nov 2003 08:47:40 +0000 (08:47 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Thu, 13 Nov 2003 08:47:40 +0000 (08:47 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@5572 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/sb_celp.c

index 1dbf1c6..1aea50f 100644 (file)
@@ -602,7 +602,7 @@ int sb_encode(void *state, short *in, SpeexBits *bits)
             gc *= 1.4142;
 
 #ifdef FIXED_POINT
-         scale = SHL(DIV32_16(SHL(gc,SIG_SHIFT-4),filter_ratio),4)*(1+el);
+         scale = SHL(MULT16_16(DIV32_16(SHL(gc,SIG_SHIFT-4),filter_ratio),(1+el)),4);
 #else
          scale = gc*(1.+el)/filter_ratio;
 #endif