]> git.sesse.net Git - vlc/commitdiff
contrib: build faad with fixed point on ARM
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 1 Sep 2009 20:06:38 +0000 (23:06 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 3 Sep 2009 19:19:17 +0000 (22:19 +0300)
It would seem to be significantly faster that way.

extras/contrib/src/Makefile
extras/contrib/src/Patches/faad-arm-fixed.patch [new file with mode: 0644]

index 59cce8065b3936783a788291f23ef69280255dc5..c52fa0fbf7412481119984dac84c3ff301f3bfe6 100644 (file)
@@ -875,6 +875,7 @@ faad2-$(FAAD2_VERSION).tar.gz:
 faad2: faad2-$(FAAD2_VERSION).tar.gz
        $(EXTRACT_GZ)
        (cd $@; echo|$(HOSTCC) -iquote . -E - || sed -i 's/-iquote /-I/' libfaad/Makefile.am; sh ./bootstrap)
+       patch -p0 < Patches/faad-arm-fixed.patch
 
 .faad: faad2
        (cd $< && $(HOSTCC) ./configure $(HOSTCONF) --disable-shared --prefix=$(PREFIX) CFLAGS="-O3" && sed -i.orig "s/shrext_cmds/shrext/g" libtool && make -C libfaad && make -C libfaad install)
diff --git a/extras/contrib/src/Patches/faad-arm-fixed.patch b/extras/contrib/src/Patches/faad-arm-fixed.patch
new file mode 100644 (file)
index 0000000..966d97d
--- /dev/null
@@ -0,0 +1,15 @@
+diff -ru faad2-2.7/libfaad/common.h faad2/libfaad/common.h
+--- faad2-2.7/libfaad/common.h  2009-02-05 02:51:03.000000000 +0200
++++ faad2/libfaad/common.h      2009-09-01 20:41:20.000000000 +0300
+@@ -79,6 +79,10 @@
+ #define FIXED_POINT
+ #endif
++#ifdef __arm__
++#define FIXED_POINT
++#endif
++
+ #define ERROR_RESILIENCE