diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2011-05-27 19:36:43 +0400 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-05-27 21:22:27 +0400 |
commit | f327bfa6dcdbce4593213c30a328d8aaf7a4b86b (patch) | |
tree | a15f021beed3be7546b3a861ca8fb2dce1aad179 | |
parent | 28734ac995ef4ea9be2203144362a585b2296637 (diff) |
swscale: fix build with --disable-swscale-alpha.
-rw-r--r-- | libswscale/x86/yuv2rgb_mmx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libswscale/x86/yuv2rgb_mmx.c b/libswscale/x86/yuv2rgb_mmx.c index 23d4c42700..439482bb71 100644 --- a/libswscale/x86/yuv2rgb_mmx.c +++ b/libswscale/x86/yuv2rgb_mmx.c @@ -82,15 +82,15 @@ SwsFunc ff_yuv2rgb_init_mmx(SwsContext *c) if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) { switch (c->dstFormat) { case PIX_FMT_RGB32: - if (CONFIG_SWSCALE_ALPHA && c->srcFormat == PIX_FMT_YUVA420P) { -#if HAVE_7REGS + if (c->srcFormat == PIX_FMT_YUVA420P) { +#if HAVE_7REGS && CONFIG_SWSCALE_ALPHA return yuva420_rgb32_MMX; #endif break; } else return yuv420_rgb32_MMX; case PIX_FMT_BGR32: - if (CONFIG_SWSCALE_ALPHA && c->srcFormat == PIX_FMT_YUVA420P) { -#if HAVE_7REGS + if (c->srcFormat == PIX_FMT_YUVA420P) { +#if HAVE_7REGS && CONFIG_SWSCALE_ALPHA return yuva420_bgr32_MMX; #endif break; |