[FFmpeg-devel] [PATCH 2/2] avcodec/alsdec: call correct function for multi-channel coding
Paul B Mahol
onemda at gmail.com
Sat Jul 1 23:23:07 EEST 2017
Fixes #5942.
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libavcodec/alsdec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index ac59885..000a61d 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -1616,9 +1616,9 @@ static int read_frame_data(ALSDecContext *ctx, unsigned int ra_frame)
}
if (!sconf->mc_coding || ctx->js_switch) {
- int independent_bs = !sconf->joint_stereo;
-
for (c = 0; c < avctx->channels; c++) {
+ int independent_bs = !(sconf->joint_stereo && (c < avctx->channels - 1) && (c % 2 == 0));
+
js_blocks[0] = 0;
js_blocks[1] = 0;
--
2.9.3
More information about the ffmpeg-devel
mailing list