summaryrefslogtreecommitdiff
path: root/libavfilter/vf_pullup.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-29 00:52:42 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-29 00:52:42 +0200
commit525a165d9985ced903228127d9d2c78b387c66aa (patch)
treece74372e92fa4a77aaf97836d7c2eb213703e61f /libavfilter/vf_pullup.c
parent4d3072ada3d586fa94acd72ec6248731183547a6 (diff)
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 <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_pullup.c')
-rw-r--r--libavfilter/vf_pullup.c2
1 files changed, 1 insertions, 1 deletions
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)
{