Commit 769b74ab authored by Thierry Foucu's avatar Thierry Foucu Committed by Carl Eugen Hoyos
Browse files

Allow mono encoding with LAME.

Patch by Thierry Foucu, tfoucu gmail

Originally committed as revision 25650 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 41f1d3af
...@@ -55,8 +55,7 @@ static av_cold int MP3lame_encode_init(AVCodecContext *avctx) ...@@ -55,8 +55,7 @@ static av_cold int MP3lame_encode_init(AVCodecContext *avctx)
} else { } else {
lame_set_quality(s->gfp, avctx->compression_level); lame_set_quality(s->gfp, avctx->compression_level);
} }
/* lame 3.91 doesn't work in mono */ lame_set_mode(s->gfp, s->stereo ? JOINT_STEREO : MONO);
lame_set_mode(s->gfp, JOINT_STEREO);
lame_set_brate(s->gfp, avctx->bit_rate/1000); lame_set_brate(s->gfp, avctx->bit_rate/1000);
if(avctx->flags & CODEC_FLAG_QSCALE) { if(avctx->flags & CODEC_FLAG_QSCALE) {
lame_set_brate(s->gfp, 0); lame_set_brate(s->gfp, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment