[FFmpeg-devel] [PATCH 2/6] pp: use av_clip_uint8 instead of a custom implementation.
Clément Bœsch
ubitux at gmail.com
Wed Nov 14 23:29:56 CET 2012
---
libpostproc/postprocess_internal.h | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/libpostproc/postprocess_internal.h b/libpostproc/postprocess_internal.h
index 82a96ff..b1b8f0c 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.
*/
--
1.8.0
More information about the ffmpeg-devel
mailing list