diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-11-04 18:53:26 +0000 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-12-19 23:24:24 +0000 |
commit | 2117725dc56e0d20da641a3311939cf4e2ed9549 (patch) | |
tree | 86ddca3a27083ac02dad069ac2df74819245ce96 /libavcodec/dxva2_mpeg2.c | |
parent | 2a4d34d462d60799e045c370dc9b2505f18365e7 (diff) | |
download | ffmpeg-2117725dc56e0d20da641a3311939cf4e2ed9549.tar.gz |
lavc: Mark all AVHWAccel structures as const
Diffstat (limited to 'libavcodec/dxva2_mpeg2.c')
-rw-r--r-- | libavcodec/dxva2_mpeg2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/dxva2_mpeg2.c b/libavcodec/dxva2_mpeg2.c index 036d5baac5..6e5dff308f 100644 --- a/libavcodec/dxva2_mpeg2.c +++ b/libavcodec/dxva2_mpeg2.c @@ -318,7 +318,7 @@ static int dxva2_mpeg2_end_frame(AVCodecContext *avctx) } #if CONFIG_MPEG2_DXVA2_HWACCEL -AVHWAccel ff_mpeg2_dxva2_hwaccel = { +const AVHWAccel ff_mpeg2_dxva2_hwaccel = { .name = "mpeg2_dxva2", .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_MPEG2VIDEO, @@ -335,7 +335,7 @@ AVHWAccel ff_mpeg2_dxva2_hwaccel = { #endif #if CONFIG_MPEG2_D3D11VA_HWACCEL -AVHWAccel ff_mpeg2_d3d11va_hwaccel = { +const AVHWAccel ff_mpeg2_d3d11va_hwaccel = { .name = "mpeg2_d3d11va", .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_MPEG2VIDEO, @@ -352,7 +352,7 @@ AVHWAccel ff_mpeg2_d3d11va_hwaccel = { #endif #if CONFIG_MPEG2_D3D11VA2_HWACCEL -AVHWAccel ff_mpeg2_d3d11va2_hwaccel = { +const AVHWAccel ff_mpeg2_d3d11va2_hwaccel = { .name = "mpeg2_d3d11va2", .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_MPEG2VIDEO, |