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, 14 Jan 2025 22:09:47 +0000 (23:09 +0100)
commit5a09275f4fb3c9e62470099644383ba30d726f27
tree8640ee23581206082d0fadf213609092b5dc6606
parent29b4e116263c946e37b87fb50edd0da653159ae6
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