mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-25 04:19:05 +00:00
lavc/mlpdec: reset layout when channels change.
Triggered by the sample for trac ticket #1726.
This commit is contained in:
parent
3fd60d8049
commit
e6701d51e1
@ -524,8 +524,11 @@ 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 = 0;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user