lavc/dirac_arith: Only compile x86 asm if ARCH_X86 is set.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 2 Dec 2014 10:36:48 +0000 (11:36 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 2 Dec 2014 10:36:48 +0000 (11:36 +0100)
Fixes ticket #3544.

libavcodec/dirac_arith.h

index a1fa96b..003430a 100644 (file)
@@ -135,7 +135,7 @@ static inline int dirac_get_arith_bit(DiracArith *c, int ctx)
 
     range_times_prob = (c->range * prob_zero) >> 16;
 
-#if HAVE_FAST_CMOV && HAVE_INLINE_ASM && HAVE_6REGS
+#if ARCH_X86 && HAVE_FAST_CMOV && HAVE_INLINE_ASM && HAVE_6REGS
     low   -= range_times_prob << 16;
     range -= range_times_prob;
     bit = 0;