aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2006-10-16 21:47:19 +0000
committerDiego Biurrun <diego@biurrun.de>2006-10-16 21:47:19 +0000
commit8dda3e796b8615b183dc806fefe8ef983157aca2 (patch)
tree4c84eb6c2a9e18b63bfc2d1700778827eb9fa91f /libavcodec
parente962604f1c9b6038dfbcb0eabbcf071aa90bee77 (diff)
downloadffmpeg-8dda3e796b8615b183dc806fefe8ef983157aca2.tar.gz
Fix crash with illegal instruction, cmov is available on 686 and later only.
Originally committed as revision 6715 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/cabac.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h
index 55f6bf6b83..9e36dc4d6b 100644
--- a/libavcodec/cabac.h
+++ b/libavcodec/cabac.h
@@ -460,7 +460,7 @@ static int always_inline get_cabac_inline(CABACContext *c, uint8_t * const state
"movl "LOW "(%2), %%ebx \n\t"
//eax:state ebx:low, edx:range, esi:RangeLPS
"subl %%esi, %%edx \n\t"
-#ifdef CMOV_IS_FAST
+#if (defined CMOV_IS_FAST && __CPU__ >= 686)
"movl %%edx, %%ecx \n\t"
"shl $17, %%edx \n\t"
"cmpl %%ebx, %%edx \n\t"