From 35686a289fcd2f9d7502e45002f168a753b11f9c Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Wed, 11 Dec 2013 18:52:44 +0200 Subject: mp3adu: Set the channel layout properly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes decoding, broken since 7e35037. This is similar to what was done for the normal mp3 decoder in f4a86bc9. Signed-off-by: Martin Storsjö --- libavcodec/mpegaudiodec_template.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/mpegaudiodec_template.c') diff --git a/libavcodec/mpegaudiodec_template.c b/libavcodec/mpegaudiodec_template.c index 9427dbfc55..9ce03efcc8 100644 --- a/libavcodec/mpegaudiodec_template.c +++ b/libavcodec/mpegaudiodec_template.c @@ -1722,6 +1722,7 @@ static int decode_frame_adu(AVCodecContext *avctx, void *data, /* update codec info */ avctx->sample_rate = s->sample_rate; 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; -- cgit v1.2.3