diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-04-25 17:16:55 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-04-25 17:16:55 +0000 |
commit | 700490a4d119aad0627821da025ac522a92cac5f (patch) | |
tree | ad15e39643c55c7e68f3709b96e05ebd72f65dbc /postproc/yuv2rgb.c | |
parent | 93d45466335db2e4a69155b5871d6aa5d6215907 (diff) | |
download | ffmpeg-700490a4d119aad0627821da025ac522a92cac5f.tar.gz |
remove remaining cpudetect dependancy
Originally committed as revision 9988 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/yuv2rgb.c')
-rw-r--r-- | postproc/yuv2rgb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/postproc/yuv2rgb.c b/postproc/yuv2rgb.c index 5ce19b5512..d4209cbdbd 100644 --- a/postproc/yuv2rgb.c +++ b/postproc/yuv2rgb.c @@ -40,7 +40,6 @@ #include "rgb2rgb.h" #include "swscale.h" #include "swscale_internal.h" -#include "../cpudetect.h" #include "../mangle.h" #include "../mp_msg.h" #include "../libvo/img_format.h" //FIXME try to reduce dependency of such stuff @@ -586,7 +585,7 @@ EPILOG(1) SwsFunc yuv2rgb_get_func_ptr (SwsContext *c) { #ifdef ARCH_X86 - if(gCpuCaps.hasMMX2){ + if(c->flags & SWS_CPU_CAPS_MMX2){ switch(c->dstFormat){ case IMGFMT_BGR32: return yuv420_rgb32_MMX2; case IMGFMT_BGR24: return yuv420_rgb24_MMX2; @@ -594,7 +593,7 @@ SwsFunc yuv2rgb_get_func_ptr (SwsContext *c) case IMGFMT_BGR15: return yuv420_rgb15_MMX2; } } - if(gCpuCaps.hasMMX){ + if(c->flags & SWS_CPU_CAPS_MMX){ switch(c->dstFormat){ case IMGFMT_BGR32: return yuv420_rgb32_MMX; case IMGFMT_BGR24: return yuv420_rgb24_MMX; |