diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-05-13 00:22:05 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-05-13 00:22:05 +0200 |
commit | 0aac0403c54eb7f47d5d707e1368e52763043a69 (patch) | |
tree | 78717df6ab00f220e8b3f3228473401ee930d15f /libavcodec/mlpdec.c | |
parent | a37f7b62461e43f90b30d231e97fb105ae5028fe (diff) | |
download | ffmpeg-0aac0403c54eb7f47d5d707e1368e52763043a69.tar.gz |
Map mlp surround channels to FFmpeg rear channels.
This allows more 3rd party applications to correctly read
the resulting wav files.
Diffstat (limited to 'libavcodec/mlpdec.c')
-rw-r--r-- | libavcodec/mlpdec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c index 7b3bd710bb..50826d0ff5 100644 --- a/libavcodec/mlpdec.c +++ b/libavcodec/mlpdec.c @@ -459,13 +459,13 @@ static int read_restart_header(MLPDecodeContext *m, GetBitContext *gbp, } if (m->avctx->codec_id == CODEC_ID_MLP && m->needs_reordering) { - if (m->avctx->channel_layout == (AV_CH_LAYOUT_2_2|AV_CH_LOW_FREQUENCY) || - m->avctx->channel_layout == AV_CH_LAYOUT_5POINT0) { + if (m->avctx->channel_layout == (AV_CH_LAYOUT_QUAD|AV_CH_LOW_FREQUENCY) || + m->avctx->channel_layout == AV_CH_LAYOUT_5POINT0_BACK) { int i = s->ch_assign[4]; s->ch_assign[4] = s->ch_assign[3]; s->ch_assign[3] = s->ch_assign[2]; s->ch_assign[2] = i; - } else if (m->avctx->channel_layout == AV_CH_LAYOUT_5POINT1) { + } else if (m->avctx->channel_layout == AV_CH_LAYOUT_5POINT1_BACK) { FFSWAP(int, s->ch_assign[2], s->ch_assign[4]); FFSWAP(int, s->ch_assign[3], s->ch_assign[5]); } |