changeset 23738:7f4973dc13c8

Fix compilation with -disable-mencoder
author cehoyos
date Tue, 10 Jul 2007 11:03:38 +0000
parents 304beddf4700
children 1b3e38733066
files configure
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Jul 10 02:02:21 2007 +0000
+++ b/configure	Tue Jul 10 11:03:38 2007 +0000
@@ -6453,12 +6453,13 @@
 
 echocheck "mencoder"
 _mencoder_flag='#undef HAVE_MENCODER'
+_def_encoders='#undef CONFIG_ENCODERS'
 if test "$_mencoder" = yes ; then
   _mencoder_flag='#define HAVE_MENCODER'
   _def_muxers='#define CONFIG_MUXERS 1'
-else
-  # mpeg1video for vf_lavc, snow for vf_uspp and vf_mcdeint
-  _libavencoders="MPEG1VIDEO_ENCODER SNOW_ENCODER"
+  _def_encoders='#define CONFIG_ENCODERS 1'
+else
+  _libavencoders=""
   _libavmuxers=""
 fi
 echores "$_mencoder"
@@ -7934,7 +7935,7 @@
 /* Use libavcodec's decoders */
 #define CONFIG_DECODERS 1
 /* Use libavcodec's encoders */
-#define CONFIG_ENCODERS 1
+$_def_encoders
 
 /* Use libavformat's demuxers */
 #define CONFIG_DEMUXERS 1