Skip to content
Snippets Groups Projects
Commit 3a1fda0a authored by Panagiotis Issaris's avatar Panagiotis Issaris Committed by Aurelien Jacobs
Browse files

clip_uint8 should return an uint8_t instead of an int (patch by Panagiotis...

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
parent 2805e3b4
No related branches found
No related tags found
No related merge requests found
...@@ -437,7 +437,7 @@ static inline int clip(int a, int amin, int amax) ...@@ -437,7 +437,7 @@ static inline int clip(int a, int amin, int amax)
return a; return a;
} }
static inline int clip_uint8(int a) static inline uint8_t clip_uint8(int a)
{ {
if (a&(~255)) return (-a)>>31; if (a&(~255)) return (-a)>>31;
else return a; else return a;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment