# HG changeset patch # User michael # Date 1221258561 0 # Node ID 5e35ed8ae2a3987c8ad980b1f0603a0647fd3cf0 # Parent f5565112d12f81113df5f85c66389fda4a1bc97e 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. diff -r f5565112d12f -r 5e35ed8ae2a3 libswscale/swscale_template.c --- 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 */