[vlc-commits] contrib: ffmpeg: enable thumb

Rafaël Carré git at videolan.org
Thu May 3 18:26:45 CEST 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed May  2 13:59:09 2012 -0400| [a2b14b8d25b732a02ae82f10650bd759b9004662] | committer: Rafaël Carré

contrib: ffmpeg: enable thumb

Depends on --enable-small and HAVE_NEON
If we use NEON, we assume at least cortex-a8 CPU which means thumb2 is supported

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

 contrib/src/ffmpeg/rules.mak |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/contrib/src/ffmpeg/rules.mak b/contrib/src/ffmpeg/rules.mak
index e91ed35..85fea9c 100644
--- a/contrib/src/ffmpeg/rules.mak
+++ b/contrib/src/ffmpeg/rules.mak
@@ -33,6 +33,12 @@ endif
 
 ifdef ENABLE_SMALL
 FFMPEGCONF += --enable-small --optflags=-O2
+ifeq ($(ARCH),arm)
+ifdef HAVE_NEON
+# XXX: assumes CPU >= cortex-a8, and thus thumb2 able
+FFMPEGCONF += --enable-thumb
+endif
+endif
 endif
 
 # XXX: REVISIT



More information about the vlc-commits mailing list