avcodec: add a define to test for AVCodecContext.ch_layout availability
authorFrançois Cartegnie <fcvlcdev@free.fr>
Thu, 20 Jun 2024 11:12:37 +0000 (13:12 +0200)
committerSebastian Ramacher <sramacher@debian.org>
Fri, 7 Mar 2025 06:31:22 +0000 (07:31 +0100)
commit366ad8fd1c41e7f57cb1244f60d5b6b8f14ce3f6
tree657c9726d2f5f7e75403aeb9de1a716d4ab7207f
parentd0d2236430a0f220aaa993fb344c79df8c930a36
avcodec: add a define to test for AVCodecContext.ch_layout availability

Co-authored-by: Steve Lhomme <robux4@ycbcr.xyz>
(cherry picked from commit 3abf93735df97cc2c96e11028b76067547c27eb7) (rebased)
rebased:
- on 3.0 the fmt_in is not a pointer
- the code around is slightly different due to the use of API_CHANNEL_LAYOUT

Gbp-Pq: Name 0096-avcodec-add-a-define-to-test-for-AVCodecContext.ch_l.patch
modules/codec/avcodec/audio.c
modules/codec/avcodec/encoder.c