[SCM] libav/experimental: Allow mono encoding with LAME.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:18:31 UTC 2013
The following commit has been merged in the experimental branch:
commit 769b74ab85f3a0b049325e3e5428e5287ecbcdeb
Author: Thierry Foucu <tfoucu at gmail.com>
Date: Tue Nov 2 20:29:20 2010 +0000
Allow mono encoding with LAME.
Patch by Thierry Foucu, tfoucu gmail
Originally committed as revision 25650 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c
index 8420298..6915258 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);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list