[Ffmpeg-cvslog] r6715 - trunk/libavcodec/cabac.h

diego subversion
Mon Oct 16 23:47:19 CEST 2006


Author: diego
Date: Mon Oct 16 23:47:19 2006
New Revision: 6715

Modified:
   trunk/libavcodec/cabac.h

Log:
Fix crash with illegal instruction, cmov is available on 686 and later only.


Modified: trunk/libavcodec/cabac.h
==============================================================================
--- trunk/libavcodec/cabac.h	(original)
+++ trunk/libavcodec/cabac.h	Mon Oct 16 23:47:19 2006
@@ -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"




More information about the ffmpeg-cvslog mailing list