FFmpeg/libavcodec
Andreas Rheinhardt fdff1b9cbf avcodec/codec_internal: Avoid deprecation warnings for channel_layouts
AVCodec.channel_layouts is deprecated and Clang (unlike GCC)
warns when setting this field in a codec definition.
Fortunately, Clang (unlike GCC) allows to use
FF_DISABLE_DEPRECATION_WARNINGS inside a definition (of an FFCodec),
so that one can create simple macros to set AVCodec.channel_layouts
that also suppress deprecation warnings for Clang.

(Notice that some of the codec definitions were already
inside FF_DISABLE/ENABLE_DEPRECATION_WARNINGS (that were not
guarded by FF_API_OLD_CHANNEL_LAYOUT); these have been removed.
Also notice that setting AVCodec.channel_layouts was not guarded
by FF_API_OLD_CHANNEL_LAYOUT either, so testing disabling it
it without removing all the codeblocks would not have worked.)

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-28 23:44:28 +02:00
..
2022-09-17 10:32:16 +02:00
2022-09-27 13:19:52 +02:00
2022-08-28 12:56:26 +02:00
2022-09-23 20:26:28 +02:00
2022-08-31 16:25:31 +02:00
2022-09-07 00:07:45 +02:00
2022-09-07 00:07:45 +02:00
2022-09-16 10:02:19 +02:00
2022-09-22 01:05:59 +02:00
2022-09-07 00:07:45 +02:00
2022-09-17 10:15:01 +02:00