[FFmpeg-cvslog] r25650 - trunk/libavcodec/libmp3lame.c
cehoyos
subversion
Tue Nov 2 21:29:20 CET 2010
Author: cehoyos
Date: Tue Nov 2 21:29:20 2010
New Revision: 25650
Log:
Allow mono encoding with LAME.
Patch by Thierry Foucu, tfoucu gmail
Modified:
trunk/libavcodec/libmp3lame.c
Modified: trunk/libavcodec/libmp3lame.c
==============================================================================
--- trunk/libavcodec/libmp3lame.c Tue Nov 2 20:42:08 2010 (r25649)
+++ trunk/libavcodec/libmp3lame.c Tue Nov 2 21:29:20 2010 (r25650)
@@ -55,8 +55,7 @@ static av_cold int MP3lame_encode_init(A
} 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);
More information about the ffmpeg-cvslog
mailing list