Commit 1fd2deed authored by Tim Walker's avatar Tim Walker Committed by Justin Ruggles
Browse files

mlpdec: set the channel layout.



Fixes bug 401.
Signed-off-by: default avatarJustin Ruggles <justin.ruggles@gmail.com>

CC:libav-stable@libav.org
parent 3ffcccb4
......@@ -520,8 +520,10 @@ 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;
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