From cd322794eecf1dd7d975ce3dcf1c18bbd8b91ad1 Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Sun, 8 Nov 2020 18:51:15 +0000 Subject: lavc: Mark hw_config pointer arrays as const They are read-only just like the HWConfig structures they point to. --- libavcodec/nvenc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/nvenc.h') diff --git a/libavcodec/nvenc.h b/libavcodec/nvenc.h index f6f2a6361a..fefc5f7f0b 100644 --- a/libavcodec/nvenc.h +++ b/libavcodec/nvenc.h @@ -230,6 +230,6 @@ int ff_nvenc_receive_packet(AVCodecContext *avctx, AVPacket *pkt); void ff_nvenc_encode_flush(AVCodecContext *avctx); extern const enum AVPixelFormat ff_nvenc_pix_fmts[]; -extern const AVCodecHWConfigInternal *ff_nvenc_hw_configs[]; +extern const AVCodecHWConfigInternal *const ff_nvenc_hw_configs[]; #endif /* AVCODEC_NVENC_H */ -- cgit v1.2.3