Fixes #5942. Signed-off-by: Paul B Mahol <one...@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 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel