avcodec: use ch_layout for channel layout in audio encoder
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 4 Jul 2023 13:55:28 +0000 (16:55 +0300)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 14 Jan 2025 22:09:47 +0000 (23:09 +0100)
commit14630b283e83824086cd10b5e56f7a90c02422ea
treef53610e2db2c34a6c567623cad4334d721985487
parent0a9a1ac02fa2ce3a0f0d5fe156f38b40cb7f5656
avcodec: use ch_layout for channel layout in audio encoder

channels and channel_layout has been deprecated in FFMPEG 5.1 and will be removed eventually

also always create the mapping, as ch_layout is always there

(cherry picked from commit b73dc8841d999c6be9de718cd2cd3aeb13279792)

Gbp-Pq: Name 0074-avcodec-use-ch_layout-for-channel-layout-in-audio-en.patch
modules/codec/avcodec/encoder.c