Commit b9d8af03 authored by Hendrik Leppkes's avatar Hendrik Leppkes Committed by Carl Eugen Hoyos

mlpdec: fix channel order for wide 7.1 truehd layouts

parent 9a972b51
...@@ -476,7 +476,8 @@ static int read_restart_header(MLPDecodeContext *m, GetBitContext *gbp, ...@@ -476,7 +476,8 @@ static int read_restart_header(MLPDecodeContext *m, GetBitContext *gbp,
} }
} }
if (m->avctx->codec_id == CODEC_ID_TRUEHD && if (m->avctx->codec_id == CODEC_ID_TRUEHD &&
m->avctx->channel_layout == AV_CH_LAYOUT_7POINT1) { (m->avctx->channel_layout == AV_CH_LAYOUT_7POINT1 ||
m->avctx->channel_layout == AV_CH_LAYOUT_7POINT1_WIDE)) {
FFSWAP(int, s->ch_assign[4], s->ch_assign[6]); FFSWAP(int, s->ch_assign[4], s->ch_assign[6]);
FFSWAP(int, s->ch_assign[5], s->ch_assign[7]); FFSWAP(int, s->ch_assign[5], s->ch_assign[7]);
} }
......
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