mirror of https://git.ffmpeg.org/ffmpeg.git
mlpdec: fix channel order for wide 7.1 truehd layouts
This commit is contained in:
parent
9a972b5111
commit
b9d8af0327
|
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue