changeset 22244:675574bebb04

Make liblzo conditional to the appropriate #defines.
author diego
date Sun, 18 Feb 2007 19:28:47 +0000
parents e085c85b29af
children 6c84c56e847a
files cfg-mencoder.h libmpcodecs/Makefile libmpcodecs/ve.c
diffstat 3 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cfg-mencoder.h	Sun Feb 18 16:46:12 2007 +0000
+++ b/cfg-mencoder.h	Sun Feb 18 19:28:47 2007 +0000
@@ -46,7 +46,10 @@
 extern void x264enc_set_param(m_option_t* opt, char* arg);
 #endif
 
+#ifdef USE_LIBLZO
 extern m_option_t nuvopts_conf[];
+#endif
+
 extern m_option_t mpegopts_conf[];
 #if defined(USE_LIBAVFORMAT) ||  defined(USE_LIBAVFORMAT_SO)
 extern m_option_t lavfopts_conf[];
@@ -68,7 +71,9 @@
 	"   copy     - frame copy, without re-encoding. Doesn't work with filters.\n"
 	"   frameno  - special audio-only file for 3-pass encoding, see DOCS.\n"
 	"   raw      - uncompressed video. Use fourcc option to set format explicitly.\n"
+#ifdef USE_LIBLZO
 	"   nuv      - nuppel video\n"
+#endif
 #ifdef USE_LIBAVCODEC
 	"   lavc     - libavcodec codecs - best quality!\n"
 #endif
@@ -274,7 +279,9 @@
 	{"x264encopts", &x264enc_set_param, CONF_TYPE_FUNC_PARAM, CONF_GLOBAL, 0, 0, NULL},
 #endif
 
+#ifdef USE_LIBLZO
 	{"nuvopts",  nuvopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
+#endif
 	{"mpegopts",  mpegopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
 #if defined(USE_LIBAVFORMAT) ||  defined(USE_LIBAVFORMAT_SO)
 	{"lavfopts",  lavfopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
--- a/libmpcodecs/Makefile	Sun Feb 18 16:46:12 2007 +0000
+++ b/libmpcodecs/Makefile	Sun Feb 18 19:28:47 2007 +0000
@@ -134,12 +134,12 @@
 SRCS2=ae.c \
              ae_pcm.c \
              ve.c \
-             ve_nuv.c \
              ve_raw.c \
 
 SRCS2-$(CONFIG_LIBAVCODEC)    += ae_lavc.c ve_lavc.c
 SRCS2-$(CONFIG_LIBAVCODEC_SO) += ae_lavc.c ve_lavc.c
 SRCS2-$(LIBDV)                += ve_libdv.c
+SRCS2-$(LIBLZO)               += ve_nuv.c
 SRCS2-$(QTX_CODECS)           += ve_qtvideo.c
 SRCS2-$(WIN32DLL)             += ve_vfw.c
 SRCS2-$(X264)                 += ve_x264.c
--- a/libmpcodecs/ve.c	Sun Feb 18 16:46:12 2007 +0000
+++ b/libmpcodecs/ve.c	Sun Feb 18 19:28:47 2007 +0000
@@ -35,7 +35,9 @@
 #ifdef HAVE_XVID4
     &ve_info_xvid,
 #endif
+#ifdef USE_LIBLZO
     &ve_info_nuv,
+#endif
 #ifdef HAVE_X264
     &ve_info_x264,
 #endif