From 9d36bdc9beb7b910b9166c40a2d3e76373d0f7cf Mon Sep 17 00:00:00 2001 From: Juanjo Date: Sun, 10 Mar 2002 14:58:53 +0000 Subject: [PATCH] - Added MP3 encoding through libmp3lame contributed by Lennert Buytenhek. Originally committed as revision 326 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/avcodec.h | 2 ++ libavcodec/utils.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index d8abfded9b..cc16cc876f 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -9,6 +9,7 @@ enum CodecID { CODEC_ID_H263, CODEC_ID_RV10, CODEC_ID_MP2, + CODEC_ID_MP3LAME, CODEC_ID_AC3, CODEC_ID_MJPEG, CODEC_ID_MPEG4, @@ -160,6 +161,7 @@ typedef struct AVPicture { extern AVCodec ac3_encoder; extern AVCodec mp2_encoder; +extern AVCodec mp3lame_encoder; extern AVCodec mpeg1video_encoder; extern AVCodec h263_encoder; extern AVCodec h263p_encoder; diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 0e6ba29d7a..2d7b6a9070 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -394,6 +394,9 @@ void avcodec_register_all(void) #ifdef CONFIG_ENCODERS register_avcodec(&ac3_encoder); register_avcodec(&mp2_encoder); +#ifdef CONFIG_MP3LAME + register_avcodec(&mp3lame_encoder); +#endif register_avcodec(&mpeg1video_encoder); register_avcodec(&h263_encoder); register_avcodec(&h263p_encoder);