diff --git a/libavfilter/vf_pullup.c b/libavfilter/vf_pullup.c index 85e6ac4923..ac67de674d 100644 --- a/libavfilter/vf_pullup.c +++ b/libavfilter/vf_pullup.c @@ -67,7 +67,7 @@ static int query_formats(AVFilterContext *ctx) return 0; } -#define ABS(a) (((a) ^ ((a) >> 31)) - ((a) >> 31)) +#define ABS(a) ((a) > 0 ? (a) : -(a)) static int diff_c(const uint8_t *a, const uint8_t *b, ptrdiff_t s) {