diff options
author | Cédric Schieli | 2009-03-24 07:09:19 +0000 |
---|---|---|
committer | Cédric Schieli | 2009-03-24 07:09:19 +0000 |
commit | 0928f1eb53c8d60c6904b00b76d8d79f9f6d7634 (patch) | |
tree | 0a29b4f446d35d64684a7ceb3cc6e4ccaef3c4ea /libswscale/yuv2rgb.c | |
parent | da1e126e0db3eda68153bb8130947adba8236034 (diff) |
Simpler and more elegant fix to the x86_32/OSX+PIC build failure
Originally committed as revision 29046 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/yuv2rgb.c')
-rw-r--r-- | libswscale/yuv2rgb.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c index dbdf9d99b2..112d4a375c 100644 --- a/libswscale/yuv2rgb.c +++ b/libswscale/yuv2rgb.c @@ -508,11 +508,8 @@ SwsFunc ff_yuv2rgb_get_func_ptr(SwsContext *c) switch (c->dstFormat) { case PIX_FMT_RGB32: if (CONFIG_SWSCALE_ALPHA && c->srcFormat == PIX_FMT_YUVA420P){ -#if HAVE_7REGS - return yuva420_rgb32_MMX2; -#else + if (HAVE_7REGS) return yuva420_rgb32_MMX2; break; -#endif }else return yuv420_rgb32_MMX2; case PIX_FMT_BGR24: return yuv420_rgb24_MMX2; case PIX_FMT_RGB565: return yuv420_rgb16_MMX2; @@ -523,11 +520,8 @@ SwsFunc ff_yuv2rgb_get_func_ptr(SwsContext *c) switch (c->dstFormat) { case PIX_FMT_RGB32: if (CONFIG_SWSCALE_ALPHA && c->srcFormat == PIX_FMT_YUVA420P){ -#if HAVE_7REGS - return yuva420_rgb32_MMX; -#else + if (HAVE_7REGS) return yuva420_rgb32_MMX; break; -#endif }else return yuv420_rgb32_MMX; case PIX_FMT_BGR24: return yuv420_rgb24_MMX; case PIX_FMT_RGB565: return yuv420_rgb16_MMX; |