From: ddennedy Date: Sat, 9 Jun 2007 06:46:05 +0000 (+0000) Subject: --avformat-swscale with --avformat-svn is only permitted with --enable-gpl X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=fe3114e63573fc466eec4c72f64057165401133d;p=melted --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 --- 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 )