mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-11 06:58:18 +00:00
mp3adu: Set the channel layout properly
This fixes decoding, broken since7e35037
. This is similar to what was done for the normal mp3 decoder inf4a86bc9
. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
70e981cf5d
commit
35686a289f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user