Unified · Split
| @@ -2054,6 +2054,7 @@ static int decode_frame(AVCodecContext * avctx, · 2053 unmodified lines | |||
| 2054 | } | 2054 | } |
| 2055 | /* update codec info */ | 2055 | /* update codec info */ |
| 2056 | avctx->channels = s->nb_channels; | 2056 | avctx->channels = s->nb_channels; |
| 2057 | avctx->channel_layout = s->nb_channels == 1 ? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO; | ||
| 2057 | if (!avctx->bit_rate) | 2058 | if (!avctx->bit_rate) |
| 2058 | avctx->bit_rate = s->bit_rate; | 2059 | avctx->bit_rate = s->bit_rate; |
| 2059 | avctx->sub_id = s->layer; | 2060 | avctx->sub_id = s->layer; |