[FFmpeg-cvslog] mlpdec: fix request_channel_layout behavior.
Michael Niedermayer
git at videolan.org
Sun Feb 9 02:24:15 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Feb 8 17:21:13 2014 +0000| [f90a4bfc43c9192e89d9b4c81d80789cd9b38a2f] | committer: Tim Walker
mlpdec: fix request_channel_layout behavior.
When request_channel_layout is 0,
all substreams should be decoded.
Signed-off-by: Tim Walker <tdskywalker at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f90a4bfc43c9192e89d9b4c81d80789cd9b38a2f
---
libavcodec/mlpdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c
index d8a76f5..ed5a6ac 100644
--- a/libavcodec/mlpdec.c
+++ b/libavcodec/mlpdec.c
@@ -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. "
More information about the ffmpeg-cvslog
mailing list