diff --git a/libpostproc/postprocess_internal.h b/libpostproc/postprocess_internal.h index 82a96ff6d111f8bd7637e2123ce4ea4b18a1b1e1..b1b8f0c6331d08ef23e9842c971065677a369374 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. */