Browse Source

mlpdec: set the channel layout.

Fixes bug 401.

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

CC:libav-stable@libav.org
tags/n1.2
Tim Walker Justin Ruggles 13 years ago
parent
commit
1fd2deedcc
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      libavcodec/mlpdec.c

+ 4
- 2
libavcodec/mlpdec.c View File

@@ -520,8 +520,10 @@ static int read_restart_header(MLPDecodeContext *m, GetBitContext *gbp,
cp->huff_lsbs = 24; 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; return 0;
} }


Loading…
Cancel
Save