changeset 4034:fbe263601152 libavcodec

Fix crash with illegal instruction, cmov is available on 686 and later only.
author diego
date Mon, 16 Oct 2006 21:47:19 +0000
parents f7a6b2bb3a2f
children b7f31a32bb30
files cabac.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cabac.h	Mon Oct 16 21:22:47 2006 +0000
+++ b/cabac.h	Mon Oct 16 21:47:19 2006 +0000
@@ -460,7 +460,7 @@
         "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"