diff options
author | Mark Thompson <sw@jkqxz.net> | 2020-11-08 18:51:15 +0000 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2020-11-08 18:54:42 +0000 |
commit | cd322794eecf1dd7d975ce3dcf1c18bbd8b91ad1 (patch) | |
tree | 2757dd5bfe003d81aec1fd21da64e673ee3ce003 /libavcodec/nvenc.c | |
parent | 8fbcc546b83e2ce242a0b75054ec2ca304a171df (diff) | |
download | ffmpeg-cd322794eecf1dd7d975ce3dcf1c18bbd8b91ad1.tar.gz |
lavc: Mark hw_config pointer arrays as const
They are read-only just like the HWConfig structures they point to.
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r-- | libavcodec/nvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 48625f5baa..1c06b6af27 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -59,7 +59,7 @@ const enum AVPixelFormat ff_nvenc_pix_fmts[] = { AV_PIX_FMT_NONE }; -const AVCodecHWConfigInternal *ff_nvenc_hw_configs[] = { +const AVCodecHWConfigInternal *const ff_nvenc_hw_configs[] = { HW_CONFIG_ENCODER_FRAMES(CUDA, CUDA), HW_CONFIG_ENCODER_DEVICE(NONE, CUDA), #if CONFIG_D3D11VA |