diff options
author | Diego Biurrun <diego@biurrun.de> | 2007-05-03 10:38:03 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2007-05-03 10:38:03 +0000 |
commit | f5a756ef2665359752b2cfc8923b53138df31a13 (patch) | |
tree | bf2cf96c7d6f8722f40aa24a07b212289cf6833f /libavcodec | |
parent | 23aee96097cfd84089d76407903bae0454f84ded (diff) | |
download | ffmpeg-f5a756ef2665359752b2cfc8923b53138df31a13.tar.gz |
Give libamr decoders/encoders a lib prefix in the name.
Originally committed as revision 8880 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/Makefile | 2 | ||||
-rw-r--r-- | libavcodec/allcodecs.c | 4 | ||||
-rw-r--r-- | libavcodec/amr.c | 28 | ||||
-rw-r--r-- | libavcodec/avcodec.h | 8 |
4 files changed, 21 insertions, 21 deletions
diff --git a/libavcodec/Makefile b/libavcodec/Makefile index 14b70adfc3..a7ef433102 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -260,7 +260,7 @@ OBJS-$(CONFIG_ADPCM_YAMAHA_DECODER) += adpcm.o OBJS-$(CONFIG_ADPCM_YAMAHA_ENCODER) += adpcm.o # external codec libraries -OBJS-$(CONFIG_AMR) += amr.o +OBJS-$(CONFIG_LIBAMR) += amr.o OBJS-$(CONFIG_LIBA52) += a52dec.o OBJS-$(CONFIG_LIBDTS) += dtsdec.o OBJS-$(CONFIG_LIBFAAC) += faac.o diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index 54ca26118a..5b1c6ccc36 100644 --- a/libavcodec/allcodecs.c +++ b/libavcodec/allcodecs.c @@ -165,8 +165,6 @@ void avcodec_register_all(void) REGISTER_DECODER(MPEG4AAC, mpeg4aac); REGISTER_ENCODER(AC3, ac3); REGISTER_DECODER(ALAC, alac); - REGISTER_ENCDEC (AMR_NB, amr_nb); - REGISTER_ENCDEC (AMR_WB, amr_wb); REGISTER_DECODER(ATRAC3, atrac3); REGISTER_DECODER(COOK, cook); REGISTER_DECODER(DCA, dca); @@ -174,6 +172,8 @@ void avcodec_register_all(void) REGISTER_ENCODER(FAAC, faac); REGISTER_ENCDEC (FLAC, flac); REGISTER_DECODER(IMC, imc); + REGISTER_ENCDEC (LIBAMR_NB, libamr_nb); + REGISTER_ENCDEC (LIBAMR_WB, libamr_wb); REGISTER_DECODER(LIBA52, liba52); REGISTER_DECODER(LIBDTS, libdts); REGISTER_ENCDEC (LIBGSM, libgsm); diff --git a/libavcodec/amr.c b/libavcodec/amr.c index bff406cb3a..afe597de23 100644 --- a/libavcodec/amr.c +++ b/libavcodec/amr.c @@ -65,7 +65,7 @@ #include "avcodec.h" -#ifdef CONFIG_AMR_NB_FIXED +#ifdef CONFIG_LIBAMR_NB_FIXED #define MMS_IO @@ -136,7 +136,7 @@ static void amr_decode_fix_avctx(AVCodecContext * avctx) avctx->frame_size = 160 * is_amr_wb; } -#ifdef CONFIG_AMR_NB_FIXED +#ifdef CONFIG_LIBAMR_NB_FIXED /* fixed point version*/ /* frame size in serial bitstream file (frame type + serial stream + flags) */ #define SERIAL_FRAMESIZE (1+MAX_SERIAL_SIZE+5) @@ -352,7 +352,7 @@ static int amr_nb_encode_frame(AVCodecContext *avctx, } -#elif defined(CONFIG_AMR_NB) /* Float point version*/ +#elif defined(CONFIG_LIBAMR_NB) /* Float point version*/ typedef struct AMRContext { int frameCount; @@ -491,11 +491,11 @@ static int amr_nb_encode_frame(AVCodecContext *avctx, #endif -#if defined(CONFIG_AMR_NB) || defined(CONFIG_AMR_NB_FIXED) +#if defined(CONFIG_LIBAMR_NB) || defined(CONFIG_LIBAMR_NB_FIXED) -AVCodec amr_nb_decoder = +AVCodec libamr_nb_decoder = { - "amr_nb", + "libamr_nb", CODEC_TYPE_AUDIO, CODEC_ID_AMR_NB, sizeof(AMRContext), @@ -505,9 +505,9 @@ AVCodec amr_nb_decoder = amr_nb_decode_frame, }; -AVCodec amr_nb_encoder = +AVCodec libamr_nb_encoder = { - "amr_nb", + "libamr_nb", CODEC_TYPE_AUDIO, CODEC_ID_AMR_NB, sizeof(AMRContext), @@ -520,7 +520,7 @@ AVCodec amr_nb_encoder = #endif /* -----------AMR wideband ------------*/ -#ifdef CONFIG_AMR_WB +#ifdef CONFIG_LIBAMR_WB #ifdef _TYPEDEF_H //To avoid duplicate typedefs from typdef in amr-nb @@ -684,9 +684,9 @@ static int amr_wb_decode_close(AVCodecContext * avctx) return 0; } -AVCodec amr_wb_decoder = +AVCodec libamr_wb_decoder = { - "amr_wb", + "libamr_wb", CODEC_TYPE_AUDIO, CODEC_ID_AMR_WB, sizeof(AMRWBContext), @@ -696,9 +696,9 @@ AVCodec amr_wb_decoder = amr_wb_decode_frame, }; -AVCodec amr_wb_encoder = +AVCodec libamr_wb_encoder = { - "amr_wb", + "libamr_wb", CODEC_TYPE_AUDIO, CODEC_ID_AMR_WB, sizeof(AMRWBContext), @@ -708,4 +708,4 @@ AVCodec amr_wb_encoder = NULL, }; -#endif //CONFIG_AMR_WB +#endif //CONFIG_LIBAMR_WB diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 111eb6bf9c..9d6d04ab8a 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2423,12 +2423,12 @@ extern AVCodec rawvideo_encoder; /* the following codecs use external libs */ extern AVCodec aac_decoder; -extern AVCodec amr_nb_decoder; -extern AVCodec amr_nb_encoder; -extern AVCodec amr_wb_decoder; -extern AVCodec amr_wb_encoder; extern AVCodec faac_encoder; extern AVCodec liba52_decoder; +extern AVCodec libamr_nb_decoder; +extern AVCodec libamr_nb_encoder; +extern AVCodec libamr_wb_decoder; +extern AVCodec libamr_wb_encoder; extern AVCodec libdts_decoder; extern AVCodec libgsm_decoder; extern AVCodec libgsm_encoder; |