1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2025-03-21 10:29:53 +00:00

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

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]);
}