diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-07-01 23:19:37 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-07-02 17:45:15 +0300 |
commit | c8853568b177b521a3ed0ec4e4246bc27be79250 (patch) | |
tree | 32285e7f477f927a84a7de50ecf05dce38d2d158 | |
parent | 06a66e7d9496adde91a54f3641eec321a093e5a5 (diff) |
avcodec/alsdec: call correct function for multi-channel coding
Fixes #5942.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/alsdec.c | 2 |
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) { |