mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 11:49:48 +00:00
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:
parent
2805e3b4eb
commit
3a1fda0a37
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user