You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
mlpdec: fix channel order for wide 7.1 truehd layouts
This commit is contained in:
committed by
Carl Eugen Hoyos
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 &&
|
||||
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]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user