diff libmpeg2/motion_comp.c @ 26625:5b89b42f6d50

Only compile and use libmpeg2 AltiVec code when AltiVec is available. The AltiVec code needs -maltivec to compile, but then AltiVec instructions appear in other places of the code causing MPlayer to sigill. Somehow upstream libmpeg2 manages not to sigill under what appear to be the same circumstances. Enlightenment welcome.
author diego
date Sat, 03 May 2008 15:23:22 +0000
parents 79ab4ecba54a
children 7cf315c4707f
line wrap: on
line diff
--- a/libmpeg2/motion_comp.c	Sat May 03 14:40:42 2008 +0000
+++ b/libmpeg2/motion_comp.c	Sat May 03 15:23:22 2008 +0000
@@ -46,7 +46,7 @@
 	mpeg2_mc = mpeg2_mc_mmx;
     else
 #endif
-#ifdef ARCH_PPC
+#ifdef HAVE_ALTIVEC
     if (accel & MPEG2_ACCEL_PPC_ALTIVEC)
 	mpeg2_mc = mpeg2_mc_altivec;
     else