mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-28 10:13:22 +00:00
mlpdec: fix request_channel_layout behavior.
When request_channel_layout is 0, all substreams should be decoded. Signed-off-by: Tim Walker <tdskywalker@gmail.com>
This commit is contained in:
parent
cde7df25ef
commit
f90a4bfc43
@ -504,7 +504,7 @@ FF_DISABLE_DEPRECATION_WARNINGS
|
|||||||
} else
|
} else
|
||||||
FF_ENABLE_DEPRECATION_WARNINGS
|
FF_ENABLE_DEPRECATION_WARNINGS
|
||||||
#endif
|
#endif
|
||||||
if ((s->ch_layout & m->avctx->request_channel_layout) ==
|
if (m->avctx->request_channel_layout && (s->ch_layout & m->avctx->request_channel_layout) ==
|
||||||
m->avctx->request_channel_layout && m->max_decoded_substream > substr) {
|
m->avctx->request_channel_layout && m->max_decoded_substream > substr) {
|
||||||
av_log(m->avctx, AV_LOG_DEBUG,
|
av_log(m->avctx, AV_LOG_DEBUG,
|
||||||
"Extracting %d-channel downmix (0x%"PRIx64") from substream %d. "
|
"Extracting %d-channel downmix (0x%"PRIx64") from substream %d. "
|
||||||
|
Loading…
Reference in New Issue
Block a user