[vlc-devel] commit: contribs: forward-port Derk-Jan's libswscale fixes (PPC only) ( Felix Paul Kühne )

git version control git at videolan.org
Tue Apr 7 18:25:37 CEST 2009


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Apr  7 18:25:30 2009 +0200| [d7119bf867154562dac7926a4848b65ef3b0367f] | committer: Felix Paul Kühne 

contribs: forward-port Derk-Jan's libswscale fixes (PPC only)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d7119bf867154562dac7926a4848b65ef3b0367f
---

 extras/contrib/src/Makefile                     |    5 +++-
 extras/contrib/src/Patches/ffmpeg-swscale.patch |   24 +++++++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletions(-)

diff --git a/extras/contrib/src/Makefile b/extras/contrib/src/Makefile
index bc2a3bc..36df3cb 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -1087,6 +1087,9 @@ endif
 ifdef HAVE_DARWIN_OS_ON_INTEL
 	(cd $@; patch -p0 < ../Patches/ffmpeg-macosx-intel-mmx.patch)
 endif
+ifdef HAVE_DARWIN_OS
+	(cd $@; patch -p0 < ../Patches/ffmpeg-swscale.patch)
+endif
 ifdef HAVE_UCLIBC
 	patch -p0 < Patches/ffmpeg-svn-uclibc.patch
 	patch -p0 < Patches/ffmpeg-svn-internal-define.patch
@@ -2491,7 +2494,7 @@ liboil: liboil-$(OIL_VERSION).tar.gz
 
 .liboil: liboil
 ifdef HAVE_DARWIN_OS
-	(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --disable-glib --prefix=$(PREFIX) CFLAGS="$(CFLAGS) -O4")
+	(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS)")
 else
 	(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS) -O2")
 endif
diff --git a/extras/contrib/src/Patches/ffmpeg-swscale.patch b/extras/contrib/src/Patches/ffmpeg-swscale.patch
new file mode 100644
index 0000000..64ccb07
--- /dev/null
+++ b/extras/contrib/src/Patches/ffmpeg-swscale.patch
@@ -0,0 +1,24 @@
+diff -ruN libswscale/swscale.c libswscale/swscale.c
+--- libswscale/swscale.c	2009-04-03 19:36:49.000000000 +0200
++++ libswscale/swscale.c	2009-04-03 19:40:06.000000000 +0200
+@@ -1101,8 +1101,7 @@
+ #endif
+ 
+ #if ARCH_PPC
+-#if (HAVE_ALTIVEC || defined (RUNTIME_CPUDETECT)) && CONFIG_GPL
+-#undef COMPILE_C
++#if HAVE_ALTIVEC || defined (RUNTIME_CPUDETECT)
+ #define COMPILE_ALTIVEC
+ #endif
+ #endif //ARCH_PPC
+@@ -1778,8 +1777,8 @@
+ 
+ static SwsFunc getSwsFunc(int flags){
+ 
+-#if defined(RUNTIME_CPUDETECT) && CONFIG_GPL
+-#if ARCH_X86
++#if defined(RUNTIME_CPUDETECT)
++#if ARCH_X86 && CONFIG_GPL
+     // ordered per speed fastest first
+     if (flags & SWS_CPU_CAPS_MMX2)
+         return swScale_MMX2;




More information about the vlc-devel mailing list