From fc3847771595fb52e01363d64b0b6b996ef0dfdc Mon Sep 17 00:00:00 2001 From: Mike Melanson Date: Wed, 15 Oct 2003 03:20:40 +0000 Subject: activate the XA and ADX ADPCM codecs Originally committed as revision 2385 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/allcodecs.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libavcodec/allcodecs.c') diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index b9f6d2b914..2626f944e6 100644 --- a/libavcodec/allcodecs.c +++ b/libavcodec/allcodecs.c @@ -146,20 +146,30 @@ void avcodec_register_all(void) #ifdef AMR_NB register_avcodec(&amr_nb_decoder); +#ifdef CONFIG_ENCODERS register_avcodec(&amr_nb_encoder); +#endif //CONFIG_ENCODERS #endif /* AMR_NB */ #ifdef AMR_WB register_avcodec(&amr_wb_decoder); +#ifdef CONFIG_ENCODERS register_avcodec(&amr_wb_encoder); +#endif //CONFIG_ENCODERS #endif /* AMR_WB */ /* pcm codecs */ +#ifdef CONFIG_ENCODERS #define PCM_CODEC(id, name) \ register_avcodec(& name ## _encoder); \ register_avcodec(& name ## _decoder); \ +#else +#define PCM_CODEC(id, name) \ + register_avcodec(& name ## _decoder); +#endif + PCM_CODEC(CODEC_ID_PCM_S16LE, pcm_s16le); PCM_CODEC(CODEC_ID_PCM_S16BE, pcm_s16be); PCM_CODEC(CODEC_ID_PCM_U16LE, pcm_u16le); @@ -177,6 +187,8 @@ PCM_CODEC(CODEC_ID_ADPCM_IMA_DK4, adpcm_ima_dk4); PCM_CODEC(CODEC_ID_ADPCM_IMA_WS, adpcm_ima_ws); PCM_CODEC(CODEC_ID_ADPCM_MS, adpcm_ms); PCM_CODEC(CODEC_ID_ADPCM_4XM, adpcm_4xm); +PCM_CODEC(CODEC_ID_ADPCM_XA, adpcm_xa); +PCM_CODEC(CODEC_ID_ADPCM_ADX, adpcm_adx); #undef PCM_CODEC } -- cgit v1.2.3