summaryrefslogtreecommitdiff
path: root/libavcodec/alsdec.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-07-01 22:19:37 +0200
committerPaul B Mahol <onemda@gmail.com>2017-07-02 16:45:15 +0200
commitc8853568b177b521a3ed0ec4e4246bc27be79250 (patch)
tree32285e7f477f927a84a7de50ecf05dce38d2d158 /libavcodec/alsdec.c
parent06a66e7d9496adde91a54f3641eec321a093e5a5 (diff)
avcodec/alsdec: call correct function for multi-channel coding
Fixes #5942. Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/alsdec.c')
-rw-r--r--libavcodec/alsdec.c2
1 files changed, 1 insertions, 1 deletions
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) {