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
This commit is contained in:
Panagiotis Issaris 2006-04-30 17:49:11 +00:00 committed by Aurelien Jacobs
parent 2805e3b4eb
commit 3a1fda0a37

View File

@ -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;