oops...
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Tue, 6 May 2003 01:19:55 +0000 (01:19 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Tue, 6 May 2003 01:19:55 +0000 (01:19 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@4666 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/ltp.c

index ec26642..f95d215 100644 (file)
@@ -415,7 +415,7 @@ float last_pitch_gain)
          if (gain[2]>0)
             gain_sum += gain[2];
          else
-            gain_sum -= .5*gain[0];
+            gain_sum -= .5*gain[2];
         if (gain_sum > tmp) {
            float fact = tmp/gain_sum;
            for (i=0;i<3;i++)