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>
Tue, 21 Jan 2025 18:02:47 +0000 (19:02 +0100)
commit140dbe98bc216d7df859c023ac24a0765e0ca3f7
tree26fde6a694ac365d82fbd6b79d90d291ee262018
parent34fdc282c03893afff9ae07c28315a4829460acb
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