avformat/configure, avformat/Makefile, avformat/factory.c: add configure option
[melted] / src / modules / avformat / configure
index 5ab6e7d..27b65ce 100755 (executable)
@@ -20,6 +20,7 @@ FFMPEG/avformat options:
   --avformat-ldextra=libs - Provide additional libs to link with
   --avformat-suffix=suff  - Specify a custom suffix for an ffmpeg shared build
   --avformat-swscale      - Use ffmpeg libswcale instead of img_convert
+  --avformat-no-codecs    - Disable the producer and consumer to avoid the FFmpeg codecs
 
   NOTE: The recommended version of FFmpeg is SVN-r$svn_rev.
 
@@ -57,6 +58,7 @@ else
        export svn_ffmpeg_extra=
        export avformat_suffix=
        export swscale=
+       export codecs=true
 
        for i in "$@"
        do
@@ -70,6 +72,7 @@ else
                        --avformat-suffix=* )   avformat_suffix="${i#--avformat-suffix=}" ;;
                        --avformat-swscale )    swscale=true ;;
                        --avformat-swscaler )   swscale=true ;;
+                       --avformat-no-codecs )  codecs=false ;;
                esac
        done
 
@@ -154,5 +157,7 @@ else
 
        echo "EXTRA_LIBS=$extra_libs" >> config.mak
        echo "AVFORMAT_SUFFIX=$avformat_suffix" >> config.mak
+       [ "$codecs" = "true" ] && echo "CODECS=1" >> config.mak
+       exit 0
 
 fi