summaryrefslogtreecommitdiff
path: root/libavcodec/dirac_arith.h
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-12-02 11:36:48 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-12-02 11:36:48 +0100
commitea5423a01716f073d3a3af678742a572b18cb936 (patch)
treed254c2ab3b62113444d96c3a0556ce39cf108e9d /libavcodec/dirac_arith.h
parent42801505cd82caf9cc71d6a3ab933d9f4a983600 (diff)
lavc/dirac_arith: Only compile x86 asm if ARCH_X86 is set.
Fixes ticket #3544.
Diffstat (limited to 'libavcodec/dirac_arith.h')
-rw-r--r--libavcodec/dirac_arith.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dirac_arith.h b/libavcodec/dirac_arith.h
index a1fa96b5bc..003430a48d 100644
--- a/libavcodec/dirac_arith.h
+++ b/libavcodec/dirac_arith.h
@@ -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;