diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-07-01 22:19:37 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-07-02 16:45:15 +0200 |
commit | c8853568b177b521a3ed0ec4e4246bc27be79250 (patch) | |
tree | 32285e7f477f927a84a7de50ecf05dce38d2d158 /libavcodec/alsdec.c | |
parent | 06a66e7d9496adde91a54f3641eec321a093e5a5 (diff) | |
download | ffmpeg-c8853568b177b521a3ed0ec4e4246bc27be79250.tar.gz |
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.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) { |