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>
Tue, 14 Jan 2025 22:09:47 +0000 (23:09 +0100)
commitd78a1e47364206f90bfabb101ffcef2c2f665705
tree0b2934705438efd57f191c02d1d0bcfc48eedaab
parent81f18d76e8decd65a7beece575547742ed42bc85
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