OSDN Git Service

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 efd5d9a..76bd013 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){