Commit 27315dc3 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/tta: fix regression with new channel layout switch

parent 385ec464
......@@ -160,7 +160,8 @@ static av_cold int tta_decode_init(AVCodecContext * avctx)
av_channel_layout_uninit(&avctx->ch_layout);
if (s->channels > 1 && s->channels < 9) {
av_channel_layout_from_mask(&avctx->ch_layout, tta_channel_layouts[s->channels-2]);
} else {
}
if (avctx->ch_layout.nb_channels == 0) {
avctx->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC;
avctx->ch_layout.nb_channels = s->channels;
}
......
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