X-Git-Url: https://git.videolan.org/?p=ffmpeg.git;a=blobdiff_plain;f=libavcodec%2Fmlpdec.c;h=80ff4017f7ffb1f648385bc1a5a46805a9e0092e;hp=f8c647a3899a574c7857c2cb02cc2942cb0f35de;hb=1fd2deedcc6400e08b31566a547a5fac3b38cefb;hpb=3ffcccb4fbaae4d5ad775506f1f2761f2029affa;ds=sidebyside diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c index f8c647a389..80ff4017f7 100644 --- a/libavcodec/mlpdec.c +++ b/libavcodec/mlpdec.c @@ -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; }