Mercurial > mplayer.hg
diff libmpcodecs/vf_divtc.c @ 28907:ccbde3575f0a
Check for HAVE_EBX_AVAILABLE before enabling MMX code that needs the EBX
register. Makes things a bit simpler for everyone who insists on compiling
MPlayer as PIE-code.
author | reimar |
---|---|
date | Fri, 13 Mar 2009 17:12:40 +0000 |
parents | 6cc8cc259dc1 |
children | a49f45515e08 |
line wrap: on
line diff
--- a/libmpcodecs/vf_divtc.c Fri Mar 13 17:09:39 2009 +0000 +++ b/libmpcodecs/vf_divtc.c Fri Mar 13 17:12:40 2009 +0000 @@ -33,7 +33,7 @@ * diff_MMX and diff_C stolen from vf_decimate.c */ -#if HAVE_MMX +#if HAVE_MMX && HAVE_EBX_AVAILABLE static int diff_MMX(unsigned char *old, unsigned char *new, int os, int ns) { volatile short out[4]; @@ -683,7 +683,7 @@ goto nomem; diff = diff_C; -#if HAVE_MMX +#if HAVE_MMX && HAVE_EBX_AVAILABLE if(gCpuCaps.hasMMX) diff = diff_MMX; #endif