Commit f4a86bc9 authored by Kieran Kunhya's avatar Kieran Kunhya Committed by Ronald S. Bultje

Set channel_layout for mpegaudio

Signed-off-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
parent 5a6de4e7
......@@ -2054,6 +2054,7 @@ static int decode_frame(AVCodecContext * avctx,
}
/* update codec info */
avctx->channels = s->nb_channels;
avctx->channel_layout = s->nb_channels == 1 ? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO;
if (!avctx->bit_rate)
avctx->bit_rate = s->bit_rate;
avctx->sub_id = s->layer;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment