From 8664c807e63e24fca88dfbf9b158b5352127f690 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Mon, 4 Nov 2002 15:56:38 +0000
Subject: [PATCH] 10l

Originally committed as revision 8100 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
---
 postproc/swscale.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/postproc/swscale.c b/postproc/swscale.c
index efd5d9a68f..76bd013af7 100644
--- a/postproc/swscale.c
+++ b/postproc/swscale.c
@@ -2439,7 +2439,7 @@ void normalizeVec(SwsVector *a, double height){
 	inv= height/sum;
 
 	for(i=0; i<a->length; i++)
-		a->coeff[i]*= height;
+		a->coeff[i]*= inv;
 }
 
 void scaleVec(SwsVector *a, double scalar){