From 3a71bcc213f223428622ac3750fe1a923f2f3ab4 Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Sat, 4 Nov 2017 18:53:26 +0000 Subject: lavc: Mark all AVHWAccel structures as const --- libavcodec/nvdec_vc1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/nvdec_vc1.c') diff --git a/libavcodec/nvdec_vc1.c b/libavcodec/nvdec_vc1.c index c04b153a86..7257692d66 100644 --- a/libavcodec/nvdec_vc1.c +++ b/libavcodec/nvdec_vc1.c @@ -110,7 +110,7 @@ static int nvdec_vc1_frame_params(AVCodecContext *avctx, return ff_nvdec_frame_params(avctx, hw_frames_ctx, 2); } -AVHWAccel ff_vc1_nvdec_hwaccel = { +const AVHWAccel ff_vc1_nvdec_hwaccel = { .name = "vc1_nvdec", .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_VC1, @@ -125,7 +125,7 @@ AVHWAccel ff_vc1_nvdec_hwaccel = { }; #if CONFIG_WMV3_NVDEC_HWACCEL -AVHWAccel ff_wmv3_nvdec_hwaccel = { +const AVHWAccel ff_wmv3_nvdec_hwaccel = { .name = "wmv3_nvdec", .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_WMV3, -- cgit v1.2.3