summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-02 16:30:32 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-02 16:30:32 +0000
commit96a506733dbb62b0fdfc29d46d49f03e0057c53b (patch)
tree4d03d893c0b19fba6d8d7da9da21a143cabd801c /libmpcodecs
parentba58bf37d6215f1f7a231f338396b9e6c091258e (diff)
downloadmpv-96a506733dbb62b0fdfc29d46d49f03e0057c53b.tar.bz2
mpv-96a506733dbb62b0fdfc29d46d49f03e0057c53b.tar.xz
Change a bunch of codec-specific preprocessor directives from a HAVE_
prefix to a CONFIG_ prefix. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27395 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ad.c10
-rw-r--r--libmpcodecs/ae.c16
-rw-r--r--libmpcodecs/ae_lame.c10
-rw-r--r--libmpcodecs/vd.c6
-rw-r--r--libmpcodecs/ve.c6
5 files changed, 24 insertions, 24 deletions
diff --git a/libmpcodecs/ad.c b/libmpcodecs/ad.c
index e553aa1ac3..11d6f350fe 100644
--- a/libmpcodecs/ad.c
+++ b/libmpcodecs/ad.c
@@ -73,13 +73,13 @@ ad_functions_t* mpcodecs_ad_drivers[] =
#ifdef CONFIG_QTX_CODECS
&mpcodecs_ad_qtaudio,
#endif
-#ifdef HAVE_FAAD
+#ifdef CONFIG_FAAD
&mpcodecs_ad_faad,
#endif
-#ifdef HAVE_OGGVORBIS
+#ifdef CONFIG_OGGVORBIS
&mpcodecs_ad_libvorbis,
#endif
-#ifdef HAVE_SPEEX
+#ifdef CONFIG_SPEEX
&mpcodecs_ad_speex,
#endif
#ifdef CONFIG_LIBMAD
@@ -88,10 +88,10 @@ ad_functions_t* mpcodecs_ad_drivers[] =
#ifdef CONFIG_REALCODECS
&mpcodecs_ad_realaud,
#endif
-#ifdef HAVE_LIBDV095
+#ifdef CONFIG_LIBDV095
&mpcodecs_ad_libdv,
#endif
-#ifdef HAVE_MUSEPACK
+#ifdef CONFIG_MUSEPACK
&mpcodecs_ad_libmusepack,
#endif
#ifdef CONFIG_LIBDCA
diff --git a/libmpcodecs/ae.c b/libmpcodecs/ae.c
index f671f294dc..5e7b76b4e9 100644
--- a/libmpcodecs/ae.c
+++ b/libmpcodecs/ae.c
@@ -14,11 +14,11 @@
#include "ae_pcm.h"
-#ifdef HAVE_TOOLAME
+#ifdef CONFIG_TOOLAME
#include "ae_toolame.h"
#endif
-#ifdef HAVE_MP3LAME
+#ifdef CONFIG_MP3LAME
#include "ae_lame.h"
#endif
@@ -26,11 +26,11 @@
#include "ae_lavc.h"
#endif
-#ifdef HAVE_FAAC
+#ifdef CONFIG_FAAC
#include "ae_faac.h"
#endif
-#ifdef HAVE_TWOLAME
+#ifdef CONFIG_TWOLAME
#include "ae_twolame.h"
#endif
@@ -50,7 +50,7 @@ audio_encoder_t *new_audio_encoder(muxer_stream_t *stream, audio_encoding_params
case ACODEC_PCM:
ris = mpae_init_pcm(encoder);
break;
-#ifdef HAVE_TOOLAME
+#ifdef CONFIG_TOOLAME
case ACODEC_TOOLAME:
ris = mpae_init_toolame(encoder);
break;
@@ -60,17 +60,17 @@ audio_encoder_t *new_audio_encoder(muxer_stream_t *stream, audio_encoding_params
ris = mpae_init_lavc(encoder);
break;
#endif
-#ifdef HAVE_MP3LAME
+#ifdef CONFIG_MP3LAME
case ACODEC_VBRMP3:
ris = mpae_init_lame(encoder);
break;
#endif
-#ifdef HAVE_FAAC
+#ifdef CONFIG_FAAC
case ACODEC_FAAC:
ris = mpae_init_faac(encoder);
break;
#endif
-#ifdef HAVE_TWOLAME
+#ifdef CONFIG_TWOLAME
case ACODEC_TWOLAME:
ris = mpae_init_twolame(encoder);
break;
diff --git a/libmpcodecs/ae_lame.c b/libmpcodecs/ae_lame.c
index 80242dd351..c539d6ba6d 100644
--- a/libmpcodecs/ae_lame.c
+++ b/libmpcodecs/ae_lame.c
@@ -33,7 +33,7 @@ static int lame_param_free_format = 0; //disabled
static int lame_param_br_min = 0; //not specified
static int lame_param_br_max = 0; //not specified
-#ifdef HAVE_MP3LAME_PRESET
+#ifdef CONFIG_MP3LAME_PRESET
int lame_param_fast=0; // unset
static char* lame_param_preset=NULL; // unset
static int lame_presets_set( lame_t gfp, int fast, int cbr, const char* preset_name );
@@ -57,7 +57,7 @@ m_option_t lameopts_conf[]={
{"free", &lame_param_free_format, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"br_min", &lame_param_br_min, CONF_TYPE_INT, CONF_RANGE, 0, 1024, NULL},
{"br_max", &lame_param_br_max, CONF_TYPE_INT, CONF_RANGE, 0, 1024, NULL},
-#ifdef HAVE_MP3LAME_PRESET
+#ifdef CONFIG_MP3LAME_PRESET
{"fast", &lame_param_fast, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"preset", &lame_param_preset, CONF_TYPE_STRING, 0, 0, 0, NULL},
#else
@@ -178,7 +178,7 @@ int mpae_init_lame(audio_encoder_t *encoder)
}
if(lame_param_lowpassfreq>=-1) lame_set_lowpassfreq(lame,lame_param_lowpassfreq);
if(lame_param_highpassfreq>=-1) lame_set_highpassfreq(lame,lame_param_highpassfreq);
-#ifdef HAVE_MP3LAME_PRESET
+#ifdef CONFIG_MP3LAME_PRESET
if(lame_param_preset != NULL) {
mp_msg(MSGT_MENCODER, MSGL_V, MSGTR_LamePresetEquals,lame_param_preset);
if(lame_presets_set(lame,lame_param_fast, (lame_param_vbr==0), lame_param_preset) < 0)
@@ -202,7 +202,7 @@ int mpae_init_lame(audio_encoder_t *encoder)
return 1;
}
-#ifdef HAVE_MP3LAME_PRESET
+#ifdef CONFIG_MP3LAME_PRESET
/* lame_presets_set
taken out of presets_set in lame-3.93.1/frontend/parse.c and modified */
static int lame_presets_set( lame_t gfp, int fast, int cbr, const char* preset_name )
@@ -253,7 +253,7 @@ static int lame_presets_set( lame_t gfp, int fast, int cbr, const char* preset_
preset_name = "256";
}
-#ifdef HAVE_MP3LAME_PRESET_MEDIUM
+#ifdef CONFIG_MP3LAME_PRESET_MEDIUM
if (strcmp(preset_name, "medium") == 0) {
if (fast > 0)
lame_set_preset(gfp, MEDIUM_FAST);
diff --git a/libmpcodecs/vd.c b/libmpcodecs/vd.c
index a880989529..eaacf06f59 100644
--- a/libmpcodecs/vd.c
+++ b/libmpcodecs/vd.c
@@ -58,7 +58,7 @@ vd_functions_t* mpcodecs_vd_drivers[] = {
#ifdef CONFIG_LIBAVCODEC
&mpcodecs_vd_ffmpeg,
#endif
-#ifdef HAVE_OGGTHEORA
+#ifdef CONFIG_OGGTHEORA
&mpcodecs_vd_theora,
#endif
#ifdef CONFIG_WIN32DLL
@@ -92,10 +92,10 @@ vd_functions_t* mpcodecs_vd_drivers[] = {
#ifdef CONFIG_REALCODECS
&mpcodecs_vd_realvid,
#endif
-#ifdef HAVE_XVID4
+#ifdef CONFIG_XVID4
&mpcodecs_vd_xvid,
#endif
-#ifdef HAVE_LIBDV095
+#ifdef CONFIG_LIBDV095
&mpcodecs_vd_libdv,
#endif
#ifdef CONFIG_QTX_CODECS
diff --git a/libmpcodecs/ve.c b/libmpcodecs/ve.c
index fe1cb7c7e5..dd7f650ba8 100644
--- a/libmpcodecs/ve.c
+++ b/libmpcodecs/ve.c
@@ -32,17 +32,17 @@ static vf_info_t* encoder_list[]={
&ve_info_qtvideo,
#endif
#endif
-#ifdef HAVE_LIBDV095
+#ifdef CONFIG_LIBDV095
&ve_info_libdv,
#endif
&ve_info_raw,
-#ifdef HAVE_XVID4
+#ifdef CONFIG_XVID4
&ve_info_xvid,
#endif
#ifdef CONFIG_LIBLZO
&ve_info_nuv,
#endif
-#ifdef HAVE_X264
+#ifdef CONFIG_X264
&ve_info_x264,
#endif
/* Please do not add any new encoders here. If you want to implement a new