Commit 4c0aece1 authored by Clément Bœsch's avatar Clément Bœsch

pp: use av_clip_uint8 instead of a custom implementation.

parent c4f317e7
......@@ -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.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment