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/codec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/codec.h') diff --git a/libavcodec/codec.h b/libavcodec/codec.h index dc8e12b3f0..0ccbf0eb19 100644 --- a/libavcodec/codec.h +++ b/libavcodec/codec.h @@ -320,7 +320,7 @@ typedef struct AVCodec { * * The user can only access this field via avcodec_get_hw_config(). */ - const struct AVCodecHWConfigInternal **hw_configs; + const struct AVCodecHWConfigInternal *const *hw_configs; /** * List of supported codec_tags, terminated by FF_CODEC_TAGS_END. -- cgit v1.2.1