oops... another stupid bug
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Fri, 9 May 2003 05:28:59 +0000 (05:28 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Fri, 9 May 2003 05:28:59 +0000 (05:28 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@4689 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/nb_celp.c

index dc70c6e..837d2f5 100644 (file)
@@ -485,7 +485,7 @@ int nb_encode(void *state, float *in, SpeexBits *bits)
       int quant;
       quant = (int)floor(.5+15*ol_pitch_coef);
       if (quant>15)
-         quant=0;
+         quant=15;
       if (quant<0)
          quant=0;
       speex_bits_pack(bits, quant, 4);