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;