[FFmpeg-devel] [PATCH] dirac_arith: Fix unprotected inline asm

Derek Buitenhuis derek.buitenhuis at gmail.com
Mon Sep 17 01:46:02 CEST 2012


Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
 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 b605825..f9a8bba 100644
--- a/libavcodec/dirac_arith.h
+++ b/libavcodec/dirac_arith.h
@@ -134,7 +134,7 @@ static inline int dirac_get_arith_bit(DiracArith *c, int ctx)
 
     range_times_prob = (c->range * prob_zero) >> 16;
 
-#if HAVE_FAST_CMOV
+#if HAVE_FAST_CMOV && HAVE_INLINE_ASM
     low   -= range_times_prob << 16;
     range -= range_times_prob;
     bit = 0;
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list