avcodec/alsdec: Fix decoding error with mono audio files
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 7 May 2021 01:02:01 +0000 (10:02 +0900)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Jun 2021 18:53:56 +0000 (20:53 +0200)
commit0dc1c85644d82934e3ebe5153d40a99350dfa0fe
tree33b54a069f9ca36b29bfa67c5a23b32c4ce9ce06
parent5f0c0883c25f398ef23cfbbe82bdd13bb3e3c799
avcodec/alsdec: Fix decoding error with mono audio files

highest_decoded_channel is modified to serve as meant.

Reported-by: Noboru Harada <noboru@ieee.org>
Regression since: a11aa5f3ed7ee4d2385a7b725d43f6070d790b4c
Fixes: Sin48k16bit1ch.mp4
Reviewed-by: Thilo Borgmann <thilo.borgmann@mail.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit f7987ce966aaad841d584988e00454c685bff36f)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/alsdec.c