[vlc-commits] Contrib: use a simpler way to discriminate between libav and FFmpeg
Jean-Baptiste Kempf
git at videolan.org
Sat Dec 28 18:53:51 CET 2013
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Dec 28 18:38:49 2013 +0100| [4bed85170f0c40f48cf4b31c554e4b7a84e4cd71] | committer: Jean-Baptiste Kempf
Contrib: use a simpler way to discriminate between libav and FFmpeg
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4bed85170f0c40f48cf4b31c554e4b7a84e4cd71
---
contrib/src/ffmpeg/rules.mak | 25 ++++++++++++++++++-------
1 file changed, 18 insertions(+), 7 deletions(-)
diff --git a/contrib/src/ffmpeg/rules.mak b/contrib/src/ffmpeg/rules.mak
index 6c04f1f..3516b7a 100644
--- a/contrib/src/ffmpeg/rules.mak
+++ b/contrib/src/ffmpeg/rules.mak
@@ -1,9 +1,16 @@
# FFmpeg
-HASH=HEAD
+#Uncomment the one you want
+#USE_LIBAV ?= 1
+#USE_FFMPEG ?= 1
-#FFMPEG_SNAPURL := http://git.videolan.org/?p=ffmpeg.git;a=snapshot;h=$(HASH);sf=tgz
+ifdef USE_FFMPEG
+HASH=HEAD
+FFMPEG_SNAPURL := http://git.videolan.org/?p=ffmpeg.git;a=snapshot;h=$(HASH);sf=tgz
+else
+HASH=HEAD
FFMPEG_SNAPURL := http://git.libav.org/?p=libav.git;a=snapshot;h=$(HASH);sf=tgz
+endif
FFMPEGCONF = \
--cc="$(CC)" \
@@ -18,12 +25,16 @@ FFMPEGCONF = \
--disable-avfilter \
--disable-filters \
--disable-bsfs \
- --disable-bzlib
+ --disable-bzlib \
+ --disable-programs \
+ --disable-avresample
+
+ifdef USE_FFMPEG
+FFMPEGCONF += \
+ --disable-swresample \
+ --disable-iconv
+endif
-# Those tools are named differently in FFmpeg and Libav
-# --disable-ffserver \
-# --disable-ffplay \
-# --disable-ffprobe
DEPS_ffmpeg = zlib gsm openjpeg
# Optional dependencies
More information about the vlc-commits
mailing list