mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/alsdec: call correct function for multi-channel coding
Fixes #5942. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
06a66e7d94
commit
c8853568b1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user