diff options
author | Juanjo <pulento@users.sourceforge.net> | 2002-03-10 14:51:20 +0000 |
---|---|---|
committer | Juanjo <pulento@users.sourceforge.net> | 2002-03-10 14:51:20 +0000 |
commit | 5798368bafa1fc2fefa6817d02c4d41622ba08fd (patch) | |
tree | 91f2fcea829907e1d037e787ee06046ff1e3f2bb /libav/avienc.c | |
parent | a674139801e6bc7d8d905cd700f55592a4f5050a (diff) |
- 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
Diffstat (limited to 'libav/avienc.c')
-rw-r--r-- | libav/avienc.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 { |