aboutsummaryrefslogtreecommitdiffstats
path: root/libpostproc/postprocess_internal.h
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-07-13 19:05:54 +0200
committerClément Bœsch <ubitux@gmail.com>2012-11-15 21:54:13 +0100
commit4c0aece1926a05e861fde1e2145dd44cf0591337 (patch)
tree6322bcf8ec682f3487cc5771fcf5ea88b9ade2fb /libpostproc/postprocess_internal.h
parentc4f317e7fe70b33aea9cffe5681e57a152b781e8 (diff)
downloadffmpeg-4c0aece1926a05e861fde1e2145dd44cf0591337.tar.gz
pp: use av_clip_uint8 instead of a custom implementation.
Diffstat (limited to 'libpostproc/postprocess_internal.h')
-rw-r--r--libpostproc/postprocess_internal.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/libpostproc/postprocess_internal.h b/libpostproc/postprocess_internal.h
index 82a96ff6d1..b1b8f0c633 100644
--- a/libpostproc/postprocess_internal.h
+++ b/libpostproc/postprocess_internal.h
@@ -28,6 +28,7 @@
#include <string.h>
#include "libavutil/avutil.h"
+#include "libavutil/intmath.h"
#include "libavutil/log.h"
#include "postprocess.h"
@@ -75,10 +76,8 @@
//filters on
//#define COMPILE_TIME_MODE 0x77
-static inline int CLIP(int a){
- if(a&256) return ((a)>>31)^(-1);
- else return a;
-}
+#define CLIP av_clip_uint8
+
/**
* Postprocessing filter.
*/