diff options
author | Thierry Foucu <tfoucu@gmail.com> | 2010-11-02 20:29:20 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-11-02 20:29:20 +0000 |
commit | 769b74ab85f3a0b049325e3e5428e5287ecbcdeb (patch) | |
tree | ed6b760652945535ba0f6d37d13704c3920e6355 /libavcodec/libmp3lame.c | |
parent | 41f1d3afebd64b02e9cabd5f0ae0c62a8647b9f4 (diff) | |
download | ffmpeg-769b74ab85f3a0b049325e3e5428e5287ecbcdeb.tar.gz |
Allow mono encoding with LAME.
Patch by Thierry Foucu, tfoucu gmail
Originally committed as revision 25650 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libmp3lame.c')
-rw-r--r-- | libavcodec/libmp3lame.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c index 8420298f20..6915258272 100644 --- a/libavcodec/libmp3lame.c +++ b/libavcodec/libmp3lame.c @@ -55,8 +55,7 @@ static av_cold int MP3lame_encode_init(AVCodecContext *avctx) } else { lame_set_quality(s->gfp, avctx->compression_level); } - /* lame 3.91 doesn't work in mono */ - lame_set_mode(s->gfp, JOINT_STEREO); + lame_set_mode(s->gfp, s->stereo ? JOINT_STEREO : MONO); lame_set_brate(s->gfp, avctx->bit_rate/1000); if(avctx->flags & CODEC_FLAG_QSCALE) { lame_set_brate(s->gfp, 0); |