summaryrefslogtreecommitdiff
path: root/libavcodec/vdpau_mpeg12.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-11-04 18:53:26 +0000
committerMark Thompson <sw@jkqxz.net>2017-11-26 21:41:19 +0000
commit3a71bcc213f223428622ac3750fe1a923f2f3ab4 (patch)
tree2e4129174f581c9d5fd3d57e6af8df352a5e182b /libavcodec/vdpau_mpeg12.c
parentda4e02b1961572c15d7cd6a701d153155f196477 (diff)
lavc: Mark all AVHWAccel structures as const
Diffstat (limited to 'libavcodec/vdpau_mpeg12.c')
-rw-r--r--libavcodec/vdpau_mpeg12.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vdpau_mpeg12.c b/libavcodec/vdpau_mpeg12.c
index 71fe889abf..d286e7e57d 100644
--- a/libavcodec/vdpau_mpeg12.c
+++ b/libavcodec/vdpau_mpeg12.c
@@ -103,7 +103,7 @@ static int vdpau_mpeg1_init(AVCodecContext *avctx)
VDP_DECODER_LEVEL_MPEG1_NA);
}
-AVHWAccel ff_mpeg1_vdpau_hwaccel = {
+const AVHWAccel ff_mpeg1_vdpau_hwaccel = {
.name = "mpeg1_vdpau",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_MPEG1VIDEO,
@@ -138,7 +138,7 @@ static int vdpau_mpeg2_init(AVCodecContext *avctx)
return ff_vdpau_common_init(avctx, profile, VDP_DECODER_LEVEL_MPEG2_HL);
}
-AVHWAccel ff_mpeg2_vdpau_hwaccel = {
+const AVHWAccel ff_mpeg2_vdpau_hwaccel = {
.name = "mpeg2_vdpau",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_MPEG2VIDEO,