Revision f4a86bc9 libavcodec/mpegaudiodec.c

View differences:

libavcodec/mpegaudiodec.c
2054 2054
    }
2055 2055
    /* update codec info */
2056 2056
    avctx->channels = s->nb_channels;
2057
    avctx->channel_layout = s->nb_channels == 1 ? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO;
2057 2058
    if (!avctx->bit_rate)
2058 2059
        avctx->bit_rate = s->bit_rate;
2059 2060
    avctx->sub_id = s->layer;

Also available in: Unified diff