[FFmpeg-devel] [PATCH]: support mono/stereo in libmp3lame

Thierry Foucu tfoucu
Tue Nov 2 21:10:15 CET 2010


$Subject

Now that we are checking the version of mp3lame in the configure, mp3lame
works with stereo and mono.

Index: libavcodec/libmp3lame.c
===================================================================
--- libavcodec/libmp3lame.c (revision 25649)
+++ libavcodec/libmp3lame.c (working copy)
@@ -55,8 +55,7 @@
     } 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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mp3lame.patch
Type: text/x-patch
Size: 561 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101102/706d5b30/attachment.bin>



More information about the ffmpeg-devel mailing list