Revision 2d0525c2 libavutil/common.h

View differences:

libavutil/common.h
151 151
 */
152 152
static inline av_const int32_t av_clipl_int32(int64_t a)
153 153
{
154
    if ((a+2147483648) & ~2147483647) return (a>>63) ^ 2147483647;
154
    if ((a+0x80000000u) & ~UINT64_C(0xFFFFFFFF)) return (a>>63) ^ 0x7FFFFFFF;
155 155
    else                              return a;
156 156
}
157 157

  

Also available in: Unified diff