pp: use av_clip_uint8 instead of a custom implementation.

This commit is contained in:
Clément Bœsch 2012-07-13 19:05:54 +02:00
parent c4f317e7fe
commit 4c0aece192
1 changed files with 3 additions and 4 deletions

View File

@ -28,6 +28,7 @@
#include <string.h> #include <string.h>
#include "libavutil/avutil.h" #include "libavutil/avutil.h"
#include "libavutil/intmath.h"
#include "libavutil/log.h" #include "libavutil/log.h"
#include "postprocess.h" #include "postprocess.h"
@ -75,10 +76,8 @@
//filters on //filters on
//#define COMPILE_TIME_MODE 0x77 //#define COMPILE_TIME_MODE 0x77
static inline int CLIP(int a){ #define CLIP av_clip_uint8
if(a&256) return ((a)>>31)^(-1);
else return a;
}
/** /**
* Postprocessing filter. * Postprocessing filter.
*/ */