[FFmpeg-cvslog] avfilter/vf_pullup: workaround bug in gcc 4.4.3 on ARM

Michael Niedermayer git at videolan.org
Sun Jun 29 01:01:41 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jun 29 00:52:42 2014 +0200| [525a165d9985ced903228127d9d2c78b387c66aa] | committer: Michael Niedermayer

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 at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=525a165d9985ced903228127d9d2c78b387c66aa
---

 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 85e6ac4..ac67de6 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)
 {



More information about the ffmpeg-cvslog mailing list