mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avcodec/codec_internal, all: Use macros to set deprecated AVCodec fields
The aim of this is twofold: a) Clang warns when setting a deprecated
field in a definition and because several of the widely set
AVCodec fields are deprecated, one gets several hundred warnings
from Clang for an ordinary build. Yet fortunately Clang (unlike GCC)
allows to disable deprecation warnings inside a definition, so
that one can create simple macros to set these fields that also suppress
deprecation warnings for Clang. This has already been done in
fdff1b9cbf for AVCodec.channel_layouts.
b) Using macros will allow to easily migrate these fields to internal ones.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
0349ae3ec4
commit
0971fcf0a0
213 changed files with 451 additions and 834 deletions
|
|
@ -1209,10 +1209,7 @@ const FFCodec ff_hevc_vaapi_encoder = {
|
|||
.caps_internal = FF_CODEC_CAP_NOT_INIT_THREADSAFE |
|
||||
FF_CODEC_CAP_INIT_CLEANUP,
|
||||
.defaults = vaapi_encode_h265_defaults,
|
||||
.p.pix_fmts = (const enum AVPixelFormat[]) {
|
||||
AV_PIX_FMT_VAAPI,
|
||||
AV_PIX_FMT_NONE,
|
||||
},
|
||||
CODEC_PIXFMTS(AV_PIX_FMT_VAAPI),
|
||||
.color_ranges = AVCOL_RANGE_MPEG | AVCOL_RANGE_JPEG,
|
||||
.hw_configs = ff_vaapi_encode_hw_configs,
|
||||
.p.wrapper_name = "vaapi",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue