Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Bradshaw authored on 2012/05/17 02:39:20... | ... |
@@ -171,7 +171,7 @@ static av_always_inline av_const int16_t av_clip_int16_c(int a) |
171 | 171 |
static av_always_inline av_const int32_t av_clipl_int32_c(int64_t a) |
172 | 172 |
{ |
173 | 173 |
if ((a+0x80000000u) & ~UINT64_C(0xFFFFFFFF)) return (a>>63) ^ 0x7FFFFFFF; |
174 |
- else return a; |
|
174 |
+ else return (int32_t)a; |
|
175 | 175 |
} |
176 | 176 |
|
177 | 177 |
/** |
... | ... |
@@ -230,7 +230,7 @@ static av_always_inline av_const int av_popcount_c(uint32_t x) |
230 | 230 |
*/ |
231 | 231 |
static av_always_inline av_const int av_popcount64_c(uint64_t x) |
232 | 232 |
{ |
233 |
- return av_popcount(x) + av_popcount(x >> 32); |
|
233 |
+ return av_popcount((uint32_t)x) + av_popcount(x >> 32); |
|
234 | 234 |
} |
235 | 235 |
|
236 | 236 |
#define MKTAG(a,b,c,d) ((a) | ((b) << 8) | ((c) << 16) | ((unsigned)(d) << 24)) |