You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/mlpdec: unbreak TrueHD single substream mono decoding
This commit is contained in:
@@ -432,6 +432,11 @@ static int read_major_sync(MLPDecodeContext *m, GetBitContext *gb)
|
|||||||
m->substream[0].mask = AV_CH_LAYOUT_STEREO;
|
m->substream[0].mask = AV_CH_LAYOUT_STEREO;
|
||||||
if ((substr = (mh.num_substreams > 1)))
|
if ((substr = (mh.num_substreams > 1)))
|
||||||
m->substream[0].mask = AV_CH_LAYOUT_STEREO;
|
m->substream[0].mask = AV_CH_LAYOUT_STEREO;
|
||||||
|
if (mh.num_substreams == 1 &&
|
||||||
|
mh.channels_thd_stream1 == 1 &&
|
||||||
|
mh.channels_thd_stream2 == 1 &&
|
||||||
|
m->avctx->ch_layout.nb_channels == 1)
|
||||||
|
m->substream[0].mask = AV_CH_LAYOUT_MONO;
|
||||||
if (mh.num_substreams > 2)
|
if (mh.num_substreams > 2)
|
||||||
if (mh.channel_layout_thd_stream2)
|
if (mh.channel_layout_thd_stream2)
|
||||||
m->substream[2].mask = mh.channel_layout_thd_stream2;
|
m->substream[2].mask = mh.channel_layout_thd_stream2;
|
||||||
|
Reference in New Issue
Block a user