[FFmpeg-cvslog] mlpdec: fix channel order for wide 7.1 truehd layouts

Hendrik Leppkes git at videolan.org
Sun Dec 18 15:31:11 CET 2011


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Sun Dec 18 15:25:25 2011 +0100| [b9d8af03270223202c9a991655d3f75b5a8b56b5] | committer: Carl Eugen Hoyos

mlpdec: fix channel order for wide 7.1 truehd layouts

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b9d8af03270223202c9a991655d3f75b5a8b56b5
---

 libavcodec/mlpdec.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c
index e912950..339c757 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]);
     }



More information about the ffmpeg-cvslog mailing list