avcodec/audio: make channel mapping array 0 terminated
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 5 Jul 2023 12:09:57 +0000 (15:09 +0300)
committerSebastian Ramacher <sramacher@debian.org>
Fri, 7 Mar 2025 06:31:22 +0000 (07:31 +0100)
commit042ec8d49e90003dafe3f1b9b931fc6ef5d60084
treebbf0470809a3fde452befa19dc401ffb74061f07
parent6a365cf0ab56e1eaa1f8a183a3732fab73d80722
avcodec/audio: make channel mapping array 0 terminated

Also change pi_channels_src to be only AOUT_CHAN_MAX instead of same
size as mapping array.

(cherry picked from commit 0ff86bf8a28a080340f600cb8561815fc43e3b4a) (rebased)
rebased:
- the code around is slightly different

Gbp-Pq: Name 0090-avcodec-audio-make-channel-mapping-array-0-terminate.patch
modules/codec/avcodec/audio.c