From 525a165d9985ced903228127d9d2c78b387c66aa Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 29 Jun 2014 00:52:42 +0200 Subject: [PATCH] avfilter/vf_pullup: workaround bug in gcc 4.4.3 on ARM The gcc version affected is very old and unmaintained AFAIK thus i made no attempt to report this to the gcc developers. The workaround is pushed as it may still affect users and does affect one fate client Signed-off-by: Michael Niedermayer --- libavfilter/vf_pullup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {