[xiph-commits] r17066 - trunk/vorbis/lib

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Thu Mar 25 21:10:18 PDT 2010


Author: xiphmont
Date: 2010-03-25 21:10:18 -0700 (Thu, 25 Mar 2010)
New Revision: 17066

Modified:
   trunk/vorbis/lib/floor1.c
Log:
Correct arithmetic error in fit weighting



Modified: trunk/vorbis/lib/floor1.c
===================================================================
--- trunk/vorbis/lib/floor1.c	2010-03-26 03:56:20 UTC (rev 17065)
+++ trunk/vorbis/lib/floor1.c	2010-03-26 04:10:18 UTC (rev 17066)
@@ -511,7 +511,7 @@
     bn++;
   }
 
-  weight = (bn*an)*info->twofitweight/(an+1)+1.;
+  weight = (bn+an)*info->twofitweight/(an+1)+1.;
   xb += xa * weight;
   yb += ya * weight;
   x2b += x2a * weight;



More information about the commits mailing list