changeset 21534:6bee9fab79f6

Fix ppc without altivec compilation
author reimar
date Sat, 09 Dec 2006 18:09:41 +0000
parents 390b966a0f8c
children 94ac700b2898
files libmpeg2/idct.c libmpeg2/libmpeg-0.4.1.diff
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpeg2/idct.c	Sat Dec 09 13:32:46 2006 +0000
+++ b/libmpeg2/idct.c	Sat Dec 09 18:09:41 2006 +0000
@@ -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;
--- a/libmpeg2/libmpeg-0.4.1.diff	Sat Dec 09 13:32:46 2006 +0000
+++ b/libmpeg2/libmpeg-0.4.1.diff	Sat Dec 09 18:09:41 2006 +0000
@@ -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;