changeset 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 f5565112d12f
children dec58ca745b2
files libswscale/swscale_template.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 */