aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-09-29 01:08:01 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-09-29 01:08:01 +0000
commitf830d8244af149f6b1e7f8c7496740ee2c96bb37 (patch)
tree2d11fad5bea40d124954fe5d71bca5fe5c582f94
parent1d44d365acb9898c1daa10953ca5514563b9500c (diff)
downloadffmpeg-f830d8244af149f6b1e7f8c7496740ee2c96bb37.tar.gz
Fix infinite loop with spline, bug was introduced in r27612 by me.
Originally committed as revision 27669 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
-rw-r--r--libswscale/swscale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index a7c42c8371..ff2d1d49d4 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -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