[vlc-devel] commit: contrib: fix compilation of ffmpeg with altivec enabled. ( Derk-Jan Hartman )

git version control git at videolan.org
Thu Sep 25 16:40:40 CEST 2008


vlc | branch: 0.9-bugfix | Derk-Jan Hartman <hartman at videolan.org> | Thu Sep 25 16:41:35 2008 +0200| [9bc3044d7f0258539f53cfee2b433706b47f9172] | committer: Derk-Jan Hartman 

contrib: fix compilation of ffmpeg with altivec enabled.

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

 extras/contrib/src/Makefile                        |    3 +++
 .../contrib/src/Patches/ffmpeg-altivec-fix.patch   |   12 ++++++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/extras/contrib/src/Makefile b/extras/contrib/src/Makefile
index fd28896..15b8154 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -1069,6 +1069,9 @@ endif
 ifdef HAVE_DARWIN_OS_ON_INTEL
 	(cd $@; patch -p0 < ../Patches/ffmpeg-macosx-intel-mmx.patch)
 endif
+ifdef HAVE_DARWIN_OS
+	(cd $@; patch -p1 < ../Patches/ffmpeg-altivec-fix.patch)
+endif
 ifdef HAVE_UCLIBC
 	patch -p0 < Patches/ffmpeg-svn-uclibc.patch
 	patch -p0 < Patches/ffmpeg-svn-internal-define.patch
diff --git a/extras/contrib/src/Patches/ffmpeg-altivec-fix.patch b/extras/contrib/src/Patches/ffmpeg-altivec-fix.patch
new file mode 100644
index 0000000..43bffce
--- /dev/null
+++ b/extras/contrib/src/Patches/ffmpeg-altivec-fix.patch
@@ -0,0 +1,12 @@
+diff --git a/libavcodec/ppc/check_altivec.c b/libavcodec/ppc/check_altivec.c
+index 932c218..f88b276 100644
+--- a/libavcodec/ppc/check_altivec.c
++++ b/libavcodec/ppc/check_altivec.c
+@@ -23,6 +23,7 @@
+  */
+ 
+ #ifdef __APPLE__
++#undef _POSIX_C_SOURCE
+ #include <sys/sysctl.h>
+ #elif __AMIGAOS4__
+ #include <exec/exec.h>




More information about the vlc-devel mailing list