mlpdec: fix channel order for wide 7.1 truehd layouts

This commit is contained in:
Hendrik Leppkes 2011-12-18 15:25:25 +01:00 committed by Carl Eugen Hoyos
parent 9a972b5111
commit b9d8af0327
1 changed files with 2 additions and 1 deletions

View File

@ -476,7 +476,8 @@ static int read_restart_header(MLPDecodeContext *m, GetBitContext *gbp,
}
}
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[5], s->ch_assign[7]);
}