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

Michael Niedermayer michaelni
Tue Nov 2 21:21:23 CET 2010


On Tue, Nov 02, 2010 at 01:10:15PM -0700, Thierry Foucu wrote:
> $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);

>  libmp3lame.c |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 2e00b0e35d7989d07b6603ba3dccf2b4de011bf5  mp3lame.patch

ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are best at talking, realize last or never when they are wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101102/5edd7fdc/attachment.pgp>



More information about the ffmpeg-devel mailing list