From fe3114e63573fc466eec4c72f64057165401133d Mon Sep 17 00:00:00 2001 From: ddennedy Date: Sat, 9 Jun 2007 06:46:05 +0000 Subject: [PATCH] --avformat-swscale with --avformat-svn is only permitted with --enable-gpl git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@979 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/modules/avformat/configure | 25 ++++++++++++++++++------- 1 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/modules/avformat/configure b/src/modules/avformat/configure index 210be53..96dda2b 100755 --- a/src/modules/avformat/configure +++ b/src/modules/avformat/configure @@ -70,17 +70,28 @@ else if [ "$svn_ffmpeg" != "" ] then - [ ! -d "ffmpeg" ] && ( + if [ "$gpl" = "true" ] + then + enable_gpl="--enable-gpl" + if [ "$swscale" != "" ] + then + enable_swscale="--enable-swscaler" + echo "SWSCALE=1" >> config.mak + fi + elif [ "$swscale" != "" ] + then + echo + echo "ERROR ERROR ERROR ERROR ERROR ERROR" + echo "--enable-gpl is required to use --avformat-swscale with --avformat-svn!" + echo + exit + fi + if [ ! -d "ffmpeg" ] + then echo echo "Checking out ffmpeg/avformat - no password required" echo svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg - ) - enable_gpl=`[ "$gpl" = "true" ] && echo "--enable-gpl"` - if [ "$swscale" != "" ] - then - enable_swscale="--enable-swscaler" - echo "SWSCALE=1" >> config.mak fi [ -d "ffmpeg" ] && ( cd ffmpeg ; ./configure $enable_gpl $enable_swscale ) #[ ! -f "ffmpeg/ffmpeg.patch" ] && ( cd ffmpeg ; cp ../ffmpeg.patch . ; patch -p0 < ffmpeg.patch ) -- 1.7.4.4