[FFmpeg-cvslog] avcodec/mlpdec: fix mulichannel output
Michael Niedermayer
git at videolan.org
Sat Feb 8 18:20:23 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Feb 8 18:08:01 2014 +0100| [1a8050ad616c9682f44671c6febb6030a8e3b71e] | committer: Michael Niedermayer
avcodec/mlpdec: fix mulichannel output
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1a8050ad616c9682f44671c6febb6030a8e3b71e
---
libavcodec/mlpdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c
index d3850b1..93ed552 100644
--- a/libavcodec/mlpdec.c
+++ b/libavcodec/mlpdec.c
@@ -528,7 +528,7 @@ FF_DISABLE_DEPRECATION_WARNINGS
FF_ENABLE_DEPRECATION_WARNINGS
} else
#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