From b13882809953d3029ab5c6dcd0dfe528d5a97cea Mon Sep 17 00:00:00 2001 From: Monty Date: Fri, 26 Mar 2010 04:10:18 +0000 Subject: [PATCH] Correct arithmetic error in fit weighting svn path=/trunk/vorbis/; revision=17066 --- lib/floor1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/floor1.c b/lib/floor1.c index 7c74e37..9935888 100644 --- a/lib/floor1.c +++ b/lib/floor1.c @@ -511,7 +511,7 @@ static int fit_line(lsfit_acc *a,int fits,int *y0,int *y1, 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; -- 2.7.4