[FFmpeg-cvslog] pp: use av_clip_uint8 instead of a custom implementation.

Clément Bœsch git at videolan.org
Thu Nov 15 21:59:41 CET 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Fri Jul 13 19:05:54 2012 +0200| [4c0aece1926a05e861fde1e2145dd44cf0591337] | committer: Clément Bœsch

pp: use av_clip_uint8 instead of a custom implementation.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4c0aece1926a05e861fde1e2145dd44cf0591337
---

 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.
  */



More information about the ffmpeg-cvslog mailing list