diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-11-18 15:12:20 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-12-18 10:20:24 +0100 |
commit | a8a7c5d502a851d16c4668e03bff12d0e16c32b8 (patch) | |
tree | a534f90f7374965cd5bf45c5d69998b5c01872ec /libavcodec/mlpdec.c | |
parent | 8718f8cfafd28a07faf88b5a3427c04cc6fa663b (diff) | |
download | ffmpeg-a8a7c5d502a851d16c4668e03bff12d0e16c32b8.tar.gz |
avcodec/thd: fix special stereo support
Diffstat (limited to 'libavcodec/mlpdec.c')
-rw-r--r-- | libavcodec/mlpdec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c index 780ed5b7b6..29fac54542 100644 --- a/libavcodec/mlpdec.c +++ b/libavcodec/mlpdec.c @@ -408,7 +408,9 @@ static int read_major_sync(MLPDecodeContext *m, GetBitContext *gb) mh.stream_type); return AVERROR_PATCHWELCOME; } - if (mh.channel_modifier_thd_stream0 == THD_CH_MODIFIER_STEREO) + if (mh.channels_thd_stream1 == 2 && + mh.channels_thd_stream2 == 2 && + m->avctx->channels == 2) m->substream[0].mask = AV_CH_LAYOUT_STEREO; if ((substr = (mh.num_substreams > 1))) m->substream[0].mask = AV_CH_LAYOUT_STEREO; |