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; ilength; i++) - a->coeff[i]*= height; + a->coeff[i]*= inv; } void scaleVec(SwsVector *a, double scalar){