From 5798368bafa1fc2fefa6817d02c4d41622ba08fd Mon Sep 17 00:00:00 2001 From: Juanjo Date: Sun, 10 Mar 2002 14:51:20 +0000 Subject: - Added MP3 encoding through libmp3lame contributed by Lennert Buytenhek. - Changes on AVI and WAV muxers to support MP3. Originally committed as revision 324 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libav/avienc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libav/avienc.c') diff --git a/libav/avienc.c b/libav/avienc.c index b894fd7280..1be5da424c 100644 --- a/libav/avienc.c +++ b/libav/avienc.c @@ -127,6 +127,10 @@ void parse_specific_params(AVCodecContext *stream, int *au_byterate, int *au_ssi *au_ssize = 1; *au_scale = 1; *au_byterate = stream->bit_rate / 8; + case CODEC_ID_MP3LAME: + *au_ssize = 1; + *au_scale = 1; + *au_byterate = stream->bit_rate / 8; default: *au_ssize = 1; *au_scale = 1; @@ -361,7 +365,7 @@ static int avi_write_trailer(AVFormatContext *s) if (nb_frames < stream->frame_number) nb_frames = stream->frame_number; } else { - if (stream->codec_id == CODEC_ID_MP2) { + if (stream->codec_id == CODEC_ID_MP2 || stream->codec_id == CODEC_ID_MP3LAME) { put_le32(pb, stream->frame_number); nb_frames += stream->frame_number; } else { -- cgit v1.2.3