1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

Merge commit '1fd2deedcc6400e08b31566a547a5fac3b38cefb'

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

Conflicts:
	libavcodec/mlpdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-01-23 16:12:05 +01:00
commit 1cf6f6f3da

View File

@ -578,10 +578,9 @@ static int read_restart_header(MLPDecodeContext *m, GetBitContext *gbp,
cp->huff_lsbs = 24; cp->huff_lsbs = 24;
} }
if (substr == m->max_decoded_substream && if (substr == m->max_decoded_substream) {
m->avctx->channels != s->max_matrix_channel + 1) { m->avctx->channels = s->max_matrix_channel + 1;
m->avctx->channels = s->max_matrix_channel + 1; m->avctx->channel_layout = s->ch_layout;
m->avctx->channel_layout = 0;
} }
return 0; return 0;