Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2011-12-18 18:25:25 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-12-18 18:25:25 +0400
commitb9d8af03270223202c9a991655d3f75b5a8b56b5 (patch)
tree55fa6f1fc0c8b9c10ce12c45d86d5aea29690644 /libavcodec/mlpdec.c
parent9a972b51114213270256c83278eb7c8fe4cf346a (diff)
mlpdec: fix channel order for wide 7.1 truehd layouts
Diffstat (limited to 'libavcodec/mlpdec.c')
-rw-r--r--libavcodec/mlpdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c
index e91295084c..339c75778d 100644
--- a/libavcodec/mlpdec.c
+++ b/libavcodec/mlpdec.c
@@ -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]);
}