Commit 1cf6f6f3 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '1fd2deed'

* commit '1fd2deed':
  mlpdec: set the channel layout.

Conflicts:
	libavcodec/mlpdec.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents cd6a8618 1fd2deed
......@@ -578,10 +578,9 @@ static int read_restart_header(MLPDecodeContext *m, GetBitContext *gbp,
cp->huff_lsbs = 24;
}
if (substr == m->max_decoded_substream &&
m->avctx->channels != s->max_matrix_channel + 1) {
m->avctx->channels = s->max_matrix_channel + 1;
m->avctx->channel_layout = 0;
if (substr == m->max_decoded_substream) {
m->avctx->channels = s->max_matrix_channel + 1;
m->avctx->channel_layout = s->ch_layout;
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment