diff options
author | Cédric Schieli <cschieli@gmail.com> | 2009-03-21 12:16:32 +0000 |
---|---|---|
committer | Cédric Schieli <cschieli@gmail.com> | 2009-03-21 12:16:32 +0000 |
commit | 986b6f8f7360215bea51dc66ae97412ac67c136e (patch) | |
tree | e8366da6a50905f9072a948ec8fd755d7796457f /libswscale/yuv2rgb.c | |
parent | 64159a588b505d879c57078d223d8e617a36ff04 (diff) | |
download | ffmpeg-986b6f8f7360215bea51dc66ae97412ac67c136e.tar.gz |
Fix build failure on x86_32 Mac OS X with PIC enabled
Originally committed as revision 29022 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/yuv2rgb.c')
-rw-r--r-- | libswscale/yuv2rgb.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c index 00ed99b79a..dbdf9d99b2 100644 --- a/libswscale/yuv2rgb.c +++ b/libswscale/yuv2rgb.c @@ -508,7 +508,11 @@ 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; +#if HAVE_7REGS + return yuva420_rgb32_MMX2; +#else + break; +#endif }else return yuv420_rgb32_MMX2; case PIX_FMT_BGR24: return yuv420_rgb24_MMX2; case PIX_FMT_RGB565: return yuv420_rgb16_MMX2; @@ -519,7 +523,11 @@ 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; +#if HAVE_7REGS + return yuva420_rgb32_MMX; +#else + break; +#endif }else return yuv420_rgb32_MMX; case PIX_FMT_BGR24: return yuv420_rgb24_MMX; case PIX_FMT_RGB565: return yuv420_rgb16_MMX; |