Revision 769b74ab libavcodec/libmp3lame.c

View differences:

libavcodec/libmp3lame.c
55 55
    } else {
56 56
        lame_set_quality(s->gfp, avctx->compression_level);
57 57
    }
58
    /* lame 3.91 doesn't work in mono */
59
    lame_set_mode(s->gfp, JOINT_STEREO);
58
    lame_set_mode(s->gfp, s->stereo ? JOINT_STEREO : MONO);
60 59
    lame_set_brate(s->gfp, avctx->bit_rate/1000);
61 60
    if(avctx->flags & CODEC_FLAG_QSCALE) {
62 61
        lame_set_brate(s->gfp, 0);

Also available in: Unified diff