From 3a1fda0a37e1829784b701cb9b187cc640813e0c Mon Sep 17 00:00:00 2001 From: Panagiotis Issaris Date: Sun, 30 Apr 2006 17:49:11 +0000 Subject: [PATCH] clip_uint8 should return an uint8_t instead of an int (patch by Panagiotis Issaris < takis.issaris _at_ uhasselt.be >) Originally committed as revision 5336 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/common.h b/libavutil/common.h index d8f2c40ade..92c0d08552 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -437,7 +437,7 @@ static inline int clip(int a, int amin, int amax) return a; } -static inline int clip_uint8(int a) +static inline uint8_t clip_uint8(int a) { if (a&(~255)) return (-a)>>31; else return a;