Mercurial > mplayer.hg
diff libswscale/swscale_template.c @ 27561:5e35ed8ae2a3
Make the horizontal C scaler code clip only against INT16_MAX not 0,
this decreases the difference between C and MMX, it is also faster.
author | michael |
---|---|
date | Fri, 12 Sep 2008 22:29:21 +0000 |
parents | f4cab7872474 |
children | f8ee6c6221b4 |
line wrap: on
line diff
--- a/libswscale/swscale_template.c Fri Sep 12 21:46:53 2008 +0000 +++ b/libswscale/swscale_template.c Fri Sep 12 22:29:21 2008 +0000 @@ -2330,7 +2330,7 @@ val += ((int)src[srcPos + j])*filter[filterSize*i + j]; } //filter += hFilterSize; - dst[i] = av_clip(val>>7, 0, (1<<15)-1); // the cubic equation does overflow ... + dst[i] = FFMIN(val>>7, (1<<15)-1); // the cubic equation does overflow ... //dst[i] = val>>7; } #endif /* HAVE_ALTIVEC */