ARM: dca: disable optimised decode_blockcodes() for old gcc
authorMans Rullgard <mans@mansr.com>
Thu, 15 Dec 2011 00:29:49 +0000 (00:29 +0000)
committerMans Rullgard <mans@mansr.com>
Thu, 15 Dec 2011 01:02:58 +0000 (01:02 +0000)
Old gcc versions have trouble compiling this function, and
no simple, targeted test is possible.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/arm/dca.h

index 9ff7f7c..9b0efc0 100644 (file)
@@ -25,7 +25,7 @@
 #include "config.h"
 #include "libavutil/intmath.h"
 
-#if HAVE_ARMV6 && HAVE_INLINE_ASM
+#if HAVE_ARMV6 && HAVE_INLINE_ASM && AV_GCC_VERSION_AT_LEAST(4,4)
 
 #define decode_blockcodes decode_blockcodes
 static inline int decode_blockcodes(int code1, int code2, int levels,