|
@@ -2054,6 +2054,7 @@ static int decode_frame(AVCodecContext * avctx, |
|
|
} |
|
|
} |
|
|
/* update codec info */ |
|
|
/* update codec info */ |
|
|
avctx->channels = s->nb_channels; |
|
|
avctx->channels = s->nb_channels; |
|
|
|
|
|
avctx->channel_layout = s->nb_channels == 1 ? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO; |
|
|
if (!avctx->bit_rate) |
|
|
if (!avctx->bit_rate) |
|
|
avctx->bit_rate = s->bit_rate; |
|
|
avctx->bit_rate = s->bit_rate; |
|
|
avctx->sub_id = s->layer; |
|
|
avctx->sub_id = s->layer; |
|
|