Original thread: Date: Nov 20, 2005 9:25 PM Subject: [PATCH] make dvdsub encoder depend on config variables Originally committed as revision 4709 to svn://svn.ffmpeg.org/ffmpeg/trunktags/v0.5
@@ -18,7 +18,7 @@ OBJS= bitstream.o utils.o mem.o allcodecs.o \ | |||||
fft.o mdct.o raw.o golomb.o cabac.o\ | fft.o mdct.o raw.o golomb.o cabac.o\ | ||||
dpcm.o adx.o faandct.o parser.o g726.o \ | dpcm.o adx.o faandct.o parser.o g726.o \ | ||||
vp3dsp.o h264idct.o rangecoder.o pnm.o h263.o msmpeg4.o h263dec.o \ | vp3dsp.o h264idct.o rangecoder.o pnm.o h263.o msmpeg4.o h263dec.o \ | ||||
dvdsub.o dvbsub.o dvbsubdec.o dvdsubenc.o opt.o | |||||
opt.o | |||||
ifeq ($(CONFIG_AASC_DECODER),yes) | ifeq ($(CONFIG_AASC_DECODER),yes) | ||||
OBJS+= aasc.o | OBJS+= aasc.o | ||||
@@ -38,6 +38,18 @@ endif | |||||
ifeq ($(CONFIG_CYUV_DECODER),yes) | ifeq ($(CONFIG_CYUV_DECODER),yes) | ||||
OBJS+= cyuv.o | OBJS+= cyuv.o | ||||
endif | endif | ||||
ifeq ($(CONFIG_DVBSUB_DECODER),yes) | |||||
OBJS+= dvbsubdec.o | |||||
endif | |||||
ifeq ($(CONFIG_DVBSUB_ENCODER),yes) | |||||
OBJS+= dvbsub.o | |||||
endif | |||||
ifeq ($(CONFIG_DVDSUB_DECODER),yes) | |||||
OBJS+= dvdsub.o | |||||
endif | |||||
ifeq ($(CONFIG_DVDSUB_ENCODER),yes) | |||||
OBJS+= dvdsubenc.o | |||||
endif | |||||
ifneq ($(CONFIG_DVVIDEO_DECODER)$(CONFIG_DVVIDEO_ENCODER),) | ifneq ($(CONFIG_DVVIDEO_DECODER)$(CONFIG_DVVIDEO_ENCODER),) | ||||
OBJS+= dv.o | OBJS+= dv.o | ||||
endif | endif | ||||
@@ -568,15 +568,19 @@ PCM_CODEC(CODEC_ID_ADPCM_YAMAHA, adpcm_yamaha); | |||||
#undef PCM_CODEC | #undef PCM_CODEC | ||||
/* subtitles */ | /* subtitles */ | ||||
#ifdef CONFIG_ENCODERS | |||||
register_avcodec(&dvbsub_encoder); | |||||
#ifdef CONFIG_DVDSUB_DECODER | |||||
register_avcodec(&dvdsub_decoder); | |||||
#endif | |||||
#ifdef CONFIG_DVDSUB_ENCODER | |||||
register_avcodec(&dvdsub_encoder); | register_avcodec(&dvdsub_encoder); | ||||
#endif | #endif | ||||
#ifdef CONFIG_DECODERS | |||||
register_avcodec(&dvdsub_decoder); | |||||
#ifdef CONFIG_DVBSUB_DECODER | |||||
register_avcodec(&dvbsub_decoder); | register_avcodec(&dvbsub_decoder); | ||||
#endif | #endif | ||||
#ifdef CONFIG_DVBSUB_ENCODER | |||||
register_avcodec(&dvbsub_encoder); | |||||
#endif | |||||
/* parsers */ | /* parsers */ | ||||
av_register_codec_parser(&mpegvideo_parser); | av_register_codec_parser(&mpegvideo_parser); | ||||
@@ -595,7 +599,12 @@ PCM_CODEC(CODEC_ID_ADPCM_YAMAHA, adpcm_yamaha); | |||||
#ifdef CONFIG_AC3 | #ifdef CONFIG_AC3 | ||||
av_register_codec_parser(&ac3_parser); | av_register_codec_parser(&ac3_parser); | ||||
#endif | #endif | ||||
#ifdef CONFIG_DVDSUB_DECODER | |||||
av_register_codec_parser(&dvdsub_parser); | av_register_codec_parser(&dvdsub_parser); | ||||
#endif | |||||
#ifdef CONFIG_DVBSUB_DECODER | |||||
av_register_codec_parser(&dvbsub_parser); | av_register_codec_parser(&dvbsub_parser); | ||||
#endif | |||||
} | } | ||||