Fix the Vorbis curve for the smaller LPC window.
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Mon, 20 Mar 2006 05:48:03 +0000 (05:48 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Mon, 20 Mar 2006 05:48:03 +0000 (05:48 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@11030 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/nb_celp.c

index a7e0d74..df001a7 100644 (file)
@@ -445,7 +445,7 @@ int nb_encode(void *state, void *vin, SpeexBits *bits)
    }
 
 #ifdef VORBIS_PSYCHO
-   compute_curve(st->psy, st->frame-16, st->curve);
+   compute_curve(st->psy, st->frame-256+st->windowSize, st->curve);
    /*print_vec(st->curve, 128, "curve");*/
    if (st->first)
       for (i=0;i<128;i++)