summaryrefslogtreecommitdiff
path: root/libavcodec/mediacodecdec.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2020-11-08 18:51:15 +0000
committerMark Thompson <sw@jkqxz.net>2020-11-08 18:54:42 +0000
commitcd322794eecf1dd7d975ce3dcf1c18bbd8b91ad1 (patch)
tree2757dd5bfe003d81aec1fd21da64e673ee3ce003 /libavcodec/mediacodecdec.c
parent8fbcc546b83e2ce242a0b75054ec2ca304a171df (diff)
downloadffmpeg-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/mediacodecdec.c')
-rw-r--r--libavcodec/mediacodecdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c
index 25410021e8..ac1725e466 100644
--- a/libavcodec/mediacodecdec.c
+++ b/libavcodec/mediacodecdec.c
@@ -486,7 +486,7 @@ static void mediacodec_decode_flush(AVCodecContext *avctx)
ff_mediacodec_dec_flush(avctx, s->ctx);
}
-static const AVCodecHWConfigInternal *mediacodec_hw_configs[] = {
+static const AVCodecHWConfigInternal *const mediacodec_hw_configs[] = {
&(const AVCodecHWConfigInternal) {
.public = {
.pix_fmt = AV_PIX_FMT_MEDIACODEC,