aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-30 00:42:27 +0000
committerGravatar diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-30 00:42:27 +0000
commit4918de6c0924130591f2745cb325adf4e8078f64 (patch)
tree949c033bd70d9da7f4b12214ecc3c6e5e1872c81
parent02cf92ad7841e2a62a3fc379583716e1e8f99f78 (diff)
#ifdef simplification and higher consistency
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13197 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libmpeg2/motion_comp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libmpeg2/motion_comp.c b/libmpeg2/motion_comp.c
index f22370884a..669825eed2 100644
--- a/libmpeg2/motion_comp.c
+++ b/libmpeg2/motion_comp.c
@@ -42,25 +42,21 @@ void mpeg2_mc_init (uint32_t accel)
mpeg2_mc = mpeg2_mc_mmx;
else
#endif
-#ifdef ARCH_PPC
-#ifdef HAVE_ALTIVEC
+#if defined(ARCH_PPC) && defined(HAVE_ALTIVEC)
if (accel & MPEG2_ACCEL_PPC_ALTIVEC)
mpeg2_mc = mpeg2_mc_altivec;
else
#endif
-#endif
#ifdef ARCH_ALPHA
if (accel & MPEG2_ACCEL_ALPHA)
mpeg2_mc = mpeg2_mc_alpha;
else
#endif
-#ifdef ARCH_SPARC
-#ifdef HAVE_VIS
+#if defined(ARCH_SPARC) && defined(HAVE_VIS)
if (accel & MPEG2_ACCEL_SPARC_VIS)
mpeg2_mc = mpeg2_mc_vis;
else
#endif
-#endif
mpeg2_mc = mpeg2_mc_c;
}