[FFmpeg-cvslog] lavc/dirac_arith: Only compile x86 asm if ARCH_X86 is set.

Carl Eugen Hoyos git at videolan.org
Tue Dec 2 15:32:55 CET 2014


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue Dec  2 11:36:48 2014 +0100| [ea5423a01716f073d3a3af678742a572b18cb936] | committer: Carl Eugen Hoyos

lavc/dirac_arith: Only compile x86 asm if ARCH_X86 is set.

Fixes ticket #3544.

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

 libavcodec/dirac_arith.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dirac_arith.h b/libavcodec/dirac_arith.h
index a1fa96b..003430a 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;



More information about the ffmpeg-cvslog mailing list