Fix infinite loop with spline, bug was introduced in r27612 by me.
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 29 Sep 2008 01:08:01 +0000 (01:08 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 29 Sep 2008 01:08:01 +0000 (01:08 +0000)
Originally committed as revision 27669 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/swscale.c

index a7c42c8..ff2d1d4 100644 (file)
@@ -1229,7 +1229,7 @@ static inline int initFilter(int16_t **outFilter, int16_t **filterPos, int *outF
                 else if (flags & SWS_SPLINE)
                 {
                     double p=-2.196152422706632;
-                    coeff = getSplineCoeff(1.0, 0.0, p, -p-1.0, d) * fone;
+                    coeff = getSplineCoeff(1.0, 0.0, p, -p-1.0, floatd) * fone;
                 }
                 else {
                     coeff= 0.0; //GCC warning killer