[MPlayer-dev-eng] ppc compile fix

Guido Guenther agx at sigxcpu.org
Wed Sep 10 11:16:47 CEST 2003


Hi,
I needed this patch to work a around an undefined reference to
diff_y_mmx when building 1.0pre1 on powerpc:

Index: libmpcodecs/pullup.c
===================================================================
--- libmpcodecs/pullup.c	(revision 6)
+++ libmpcodecs/pullup.c	(working copy)
@@ -170,6 +170,7 @@
 	return diff;
 }
 
+#ifdef HAVE_MMX
 static int licomb_y_test(unsigned char *a, unsigned char *b, int s)
 {
 	int c = licomb_y(a,b,s);
@@ -177,6 +178,7 @@
 	if (c != m) printf("%d != %d\n", c, m);
 	return m;
 }
+#endif
 
Regards,
 -- Guido



More information about the MPlayer-dev-eng mailing list