Commit a60466db authored by Diego Biurrun's avatar Diego Biurrun

swscale: Remove HAVE_MMX from files that are only compiled with MMX enabled.

parent 97e057ff
...@@ -127,7 +127,7 @@ void rgb2rgb_init_x86(void) ...@@ -127,7 +127,7 @@ void rgb2rgb_init_x86(void)
{ {
int cpu_flags = av_get_cpu_flags(); int cpu_flags = av_get_cpu_flags();
if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) if (cpu_flags & AV_CPU_FLAG_MMX)
rgb2rgb_init_MMX(); rgb2rgb_init_MMX();
if (HAVE_AMD3DNOW && cpu_flags & AV_CPU_FLAG_3DNOW) if (HAVE_AMD3DNOW && cpu_flags & AV_CPU_FLAG_3DNOW)
rgb2rgb_init_3DNOW(); rgb2rgb_init_3DNOW();
......
...@@ -81,7 +81,7 @@ SwsFunc ff_yuv2rgb_init_mmx(SwsContext *c) ...@@ -81,7 +81,7 @@ SwsFunc ff_yuv2rgb_init_mmx(SwsContext *c)
} }
#endif #endif
if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) { if (cpu_flags & AV_CPU_FLAG_MMX) {
switch (c->dstFormat) { switch (c->dstFormat) {
case PIX_FMT_RGB32: case PIX_FMT_RGB32:
if (c->srcFormat == PIX_FMT_YUVA420P) { if (c->srcFormat == PIX_FMT_YUVA420P) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment