[FFmpeg-cvslog] avcodec/alsdec: call correct function for multi-channel coding

Paul B Mahol git at videolan.org
Sun Jul 2 18:34:28 EEST 2017


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Jul  1 22:19:37 2017 +0200| [c8853568b177b521a3ed0ec4e4246bc27be79250] | committer: Paul B Mahol

avcodec/alsdec: call correct function for multi-channel coding

Fixes #5942.

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c8853568b177b521a3ed0ec4e4246bc27be79250
---

 libavcodec/alsdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index d95e30d10d..b4b294d7ba 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -1637,7 +1637,7 @@ static int read_frame_data(ALSDecContext *ctx, unsigned int ra_frame)
                     independent_bs = 2;
 
             // if this is the last channel, it has to be decoded independently
-            if (c == avctx->channels - 1)
+            if (c == avctx->channels - 1 || (c & 1))
                 independent_bs = 1;
 
             if (independent_bs) {



More information about the ffmpeg-cvslog mailing list