[MPlayer-cvslog] r21550 - in trunk/libmpeg2: idct.c libmpeg-0.4.1.diff

reimar subversion at mplayerhq.hu
Sat Dec 9 19:09:41 CET 2006


Author: reimar
Date: Sat Dec  9 19:09:41 2006
New Revision: 21550

Modified:
   trunk/libmpeg2/idct.c
   trunk/libmpeg2/libmpeg-0.4.1.diff

Log:
Fix ppc without altivec compilation


Modified: trunk/libmpeg2/idct.c
==============================================================================
--- trunk/libmpeg2/idct.c	(original)
+++ trunk/libmpeg2/idct.c	Sat Dec  9 19:09:41 2006
@@ -253,7 +253,7 @@
 	mpeg2_idct_mmx_init ();
     } else
 #endif
-#ifdef ARCH_PPC
+#if defined(ARCH_PPC) && defined(HAVE_ALTIVEC)
     if (accel & MPEG2_ACCEL_PPC_ALTIVEC) {
 	mpeg2_idct_copy = mpeg2_idct_copy_altivec;
 	mpeg2_idct_add = mpeg2_idct_add_altivec;

Modified: trunk/libmpeg2/libmpeg-0.4.1.diff
==============================================================================
--- trunk/libmpeg2/libmpeg-0.4.1.diff	(original)
+++ trunk/libmpeg2/libmpeg-0.4.1.diff	Sat Dec  9 19:09:41 2006
@@ -373,3 +373,14 @@
      decoder->offset += 16;						\
      if (decoder->offset == decoder->width) {				\
  	do { /* just so we can use the break statement */		\
+--- libmpeg2/idct.c	2006-06-16 20:12:26.000000000 +0200
++++ libmpeg2/idct.c	2006-06-16 20:12:50.000000000 +0200
+@@ -253,7 +253,7 @@
+ 	mpeg2_idct_mmx_init ();
+     } else
+ #endif
+-#ifdef ARCH_PPC
++#if defined(ARCH_PPC) && defined(HAVE_ALTIVEC)
+     if (accel & MPEG2_ACCEL_PPC_ALTIVEC) {
+ 	mpeg2_idct_copy = mpeg2_idct_copy_altivec;
+ 	mpeg2_idct_add = mpeg2_idct_add_altivec;



More information about the MPlayer-cvslog mailing list