[xiph-commits] r10685 - trunk/speex/libspeex

jm at svn.xiph.org jm at svn.xiph.org
Mon Jan 2 04:49:16 PST 2006


Author: jm
Date: 2006-01-02 04:49:13 -0800 (Mon, 02 Jan 2006)
New Revision: 10685

Modified:
   trunk/speex/libspeex/vorbis_psy.c
Log:
fixed an off-by-one overflow curve computation


Modified: trunk/speex/libspeex/vorbis_psy.c
===================================================================
--- trunk/speex/libspeex/vorbis_psy.c	2006-01-02 03:21:21 UTC (rev 10684)
+++ trunk/speex/libspeex/vorbis_psy.c	2006-01-02 12:49:13 UTC (rev 10685)
@@ -406,7 +406,7 @@
     for (i=0;i<SIDE;i++)
     {
        curve[i]=curve[SIDE];
-       curve[(psy->n>>1)-i]=curve[(psy->n>>1)-SIDE];
+       curve[(psy->n>>1)-i-1]=curve[(psy->n>>1)-SIDE];
     }
     for(i=0;i<((psy->n)>>1);i++)
        //curve[i] = fromdB(.5*curve[i])*pow(1+i/12,.6);



More information about the commits mailing list