Commit f90a4bfc authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Tim Walker

mlpdec: fix request_channel_layout behavior.

When request_channel_layout is 0,
all substreams should be decoded.
Signed-off-by: 's avatarTim Walker <tdskywalker@gmail.com>
parent cde7df25
......@@ -504,7 +504,7 @@ FF_DISABLE_DEPRECATION_WARNINGS
} else
FF_ENABLE_DEPRECATION_WARNINGS
#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) {
av_log(m->avctx, AV_LOG_DEBUG,
"Extracting %d-channel downmix (0x%"PRIx64") from substream %d. "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment