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

Michael Niedermayer michaelni
Tue Oct 17 02:36:32 CEST 2006


Hi

On Mon, Oct 16, 2006 at 11:47:19PM +0200, diego wrote:
> 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)

IMHO CMOV_IS_FAST should not be defined in the first place if cmov isnt
available
(if its not available it cant be fast)

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the ffmpeg-cvslog mailing list