10l
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 4 Nov 2002 15:56:38 +0000 (15:56 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 4 Nov 2002 15:56:38 +0000 (15:56 +0000)
Originally committed as revision 8100 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

postproc/swscale.c

index efd5d9a68f5b805acef2fd9db2dbb4bed7125b71..76bd013af7248e02e585585c8867814d5def6d51 100644 (file)
@@ -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){