1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

mlpdec: set the channel layout.

Fixes bug 401.

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>

CC:libav-stable@libav.org
This commit is contained in:
Tim Walker 2012-12-31 15:33:25 +01:00 committed by Justin Ruggles
parent 3ffcccb4fb
commit 1fd2deedcc

View File

@ -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;
}