diff common.h @ 1898:7d2907127da3 libavcodec

h264 loop filter optimizations
author michael
date Sat, 20 Mar 2004 00:18:52 +0000
parents e5687117cc7f
children 7aaf242d5b51
line wrap: on
line diff
--- a/common.h	Fri Mar 19 21:21:17 2004 +0000
+++ b/common.h	Sat Mar 20 00:18:52 2004 +0000
@@ -1163,6 +1163,12 @@
         return a;
 }
 
+static inline int clip_uint8(int a)
+{
+    if (a&(~255)) return (-a)>>31;
+    else          return a;
+}
+
 /* math */
 extern const uint8_t ff_sqrt_tab[128];