History

lavc: Mark all AVHWAccel structures as const

Mark Thompson committed 9 years ago

Commit 21177251 parent 2a4d34d23 files · +74 −71Browse files

Unified · Split

23 files
  1. doc/APIchanges +3 −0
  2. libavcodec/avcodec.h +1 −1
  3. libavcodec/cuvid_h264.c +1 −1
  4. libavcodec/cuvid_hevc.c +1 −1
  5. libavcodec/decode.c +1 −1
  6. libavcodec/dxva2_h264.c +3 −3
  7. libavcodec/dxva2_hevc.c +3 −3
  8. libavcodec/dxva2_mpeg2.c +3 −3
  9. libavcodec/dxva2_vc1.c +6 −6
  10. libavcodec/hwaccels.h +34 −34
  11. libavcodec/vaapi_h264.c +1 −1
  12. libavcodec/vaapi_hevc.c +1 −1
  13. libavcodec/vaapi_mpeg2.c +1 −1
  14. libavcodec/vaapi_mpeg4.c +2 −2
  15. libavcodec/vaapi_vc1.c +2 −2
  16. libavcodec/vaapi_vp8.c +1 −1
  17. libavcodec/vda_h264.c +2 −2
  18. libavcodec/vdpau_h264.c +1 −1
  19. libavcodec/vdpau_hevc.c +1 −1
  20. libavcodec/vdpau_mpeg12.c +2 −2
  21. libavcodec/vdpau_mpeg4.c +1 −1
  22. libavcodec/vdpau_vc1.c +2 −2
  23. libavcodec/version.h +1 −1
doc/APIchanges+3−0
@@ -13,6 +13,9 @@ libavutil: 2017-03-23 · 12 unmodified lines
1313
1414 API changes, most recent first:
1515
16+2017-xx-xx - xxxxxxx - lavc 58.8.0 - avcodec.h
17+ Add const to AVCodecContext.hwaccel.
18+
1619 2017-xx-xx - xxxxxxx - lavc 58.7.0 - avcodec.h
1720 Deprecate user visibility of the AVHWAccel structure and the functions
1821 av_register_hwaccel() and av_hwaccel_next().
libavcodec/avcodec.h+1−1
@@ -2307,7 +2307,7 @@ typedef struct AVCodecContext { · 2306 unmodified lines
23072307 * - encoding: unused.
23082308 * - decoding: Set by libavcodec
23092309 */
2310− struct AVHWAccel *hwaccel;
2310+ const struct AVHWAccel *hwaccel;
23112311
23122312 /**
23132313 * Hardware accelerator context.
libavcodec/cuvid_h264.c+1−1
@@ -163,7 +163,7 @@ static int cuvid_h264_decode_init(AVCodecContext *avctx) · 162 unmodified lines
163163 return ff_cuvid_decode_init(avctx, sps->ref_frame_count + sps->num_reorder_frames);
164164 }
165165
166−AVHWAccel ff_h264_cuvid_hwaccel = {
166+const AVHWAccel ff_h264_cuvid_hwaccel = {
167167 .name = "h264_cuvid",
168168 .type = AVMEDIA_TYPE_VIDEO,
169169 .id = AV_CODEC_ID_H264,
libavcodec/cuvid_hevc.c+1−1
@@ -266,7 +266,7 @@ static int cuvid_hevc_decode_init(AVCodecContext *avctx) · 265 unmodified lines
266266 return ff_cuvid_decode_init(avctx, sps->temporal_layer[sps->max_sub_layers - 1].max_dec_pic_buffering + 1);
267267 }
268268
269−AVHWAccel ff_hevc_cuvid_hwaccel = {
269+const AVHWAccel ff_hevc_cuvid_hwaccel = {
270270 .name = "hevc_cuvid",
271271 .type = AVMEDIA_TYPE_VIDEO,
272272 .id = AV_CODEC_ID_HEVC,
libavcodec/decode.c+1−1
@@ -812,7 +812,7 @@ static int hwaccel_init(AVCodecContext *avctx, · 811 unmodified lines
812812 return AVERROR(ENOMEM);
813813 }
814814
815− avctx->hwaccel = (AVHWAccel*)hwaccel;
815+ avctx->hwaccel = hwaccel;
816816 err = hwaccel->init(avctx);
817817 if (err < 0) {
818818 av_log(avctx, AV_LOG_ERROR, "Failed setup for format %s: "
libavcodec/dxva2_h264.c+3−3
@@ -513,7 +513,7 @@ static int dxva2_h264_end_frame(AVCodecContext *avctx) · 512 unmodified lines
513513 }
514514
515515 #if CONFIG_H264_DXVA2_HWACCEL
516−AVHWAccel ff_h264_dxva2_hwaccel = {
516+const AVHWAccel ff_h264_dxva2_hwaccel = {
517517 .name = "h264_dxva2",
518518 .type = AVMEDIA_TYPE_VIDEO,
519519 .id = AV_CODEC_ID_H264,
@@ -530,7 +530,7 @@ AVHWAccel ff_h264_dxva2_hwaccel = { · 10 unmodified lines
530530 #endif
531531
532532 #if CONFIG_H264_D3D11VA_HWACCEL
533−AVHWAccel ff_h264_d3d11va_hwaccel = {
533+const AVHWAccel ff_h264_d3d11va_hwaccel = {
534534 .name = "h264_d3d11va",
535535 .type = AVMEDIA_TYPE_VIDEO,
536536 .id = AV_CODEC_ID_H264,
@@ -547,7 +547,7 @@ AVHWAccel ff_h264_d3d11va_hwaccel = { · 10 unmodified lines
547547 #endif
548548
549549 #if CONFIG_H264_D3D11VA2_HWACCEL
550−AVHWAccel ff_h264_d3d11va2_hwaccel = {
550+const AVHWAccel ff_h264_d3d11va2_hwaccel = {
551551 .name = "h264_d3d11va2",
552552 .type = AVMEDIA_TYPE_VIDEO,
553553 .id = AV_CODEC_ID_H264,
libavcodec/dxva2_hevc.c+3−3
@@ -422,7 +422,7 @@ static int dxva2_hevc_end_frame(AVCodecContext *avctx) · 421 unmodified lines
422422 }
423423
424424 #if CONFIG_HEVC_DXVA2_HWACCEL
425−AVHWAccel ff_hevc_dxva2_hwaccel = {
425+const AVHWAccel ff_hevc_dxva2_hwaccel = {
426426 .name = "hevc_dxva2",
427427 .type = AVMEDIA_TYPE_VIDEO,
428428 .id = AV_CODEC_ID_HEVC,
@@ -439,7 +439,7 @@ AVHWAccel ff_hevc_dxva2_hwaccel = { · 10 unmodified lines
439439 #endif
440440
441441 #if CONFIG_HEVC_D3D11VA_HWACCEL
442−AVHWAccel ff_hevc_d3d11va_hwaccel = {
442+const AVHWAccel ff_hevc_d3d11va_hwaccel = {
443443 .name = "hevc_d3d11va",
444444 .type = AVMEDIA_TYPE_VIDEO,
445445 .id = AV_CODEC_ID_HEVC,
@@ -456,7 +456,7 @@ AVHWAccel ff_hevc_d3d11va_hwaccel = { · 10 unmodified lines
456456 #endif
457457
458458 #if CONFIG_HEVC_D3D11VA2_HWACCEL
459−AVHWAccel ff_hevc_d3d11va2_hwaccel = {
459+const AVHWAccel ff_hevc_d3d11va2_hwaccel = {
460460 .name = "hevc_d3d11va2",
461461 .type = AVMEDIA_TYPE_VIDEO,
462462 .id = AV_CODEC_ID_HEVC,
libavcodec/dxva2_mpeg2.c+3−3
@@ -318,7 +318,7 @@ static int dxva2_mpeg2_end_frame(AVCodecContext *avctx) · 317 unmodified lines
318318 }
319319
320320 #if CONFIG_MPEG2_DXVA2_HWACCEL
321−AVHWAccel ff_mpeg2_dxva2_hwaccel = {
321+const AVHWAccel ff_mpeg2_dxva2_hwaccel = {
322322 .name = "mpeg2_dxva2",
323323 .type = AVMEDIA_TYPE_VIDEO,
324324 .id = AV_CODEC_ID_MPEG2VIDEO,
@@ -335,7 +335,7 @@ AVHWAccel ff_mpeg2_dxva2_hwaccel = { · 10 unmodified lines
335335 #endif
336336
337337 #if CONFIG_MPEG2_D3D11VA_HWACCEL
338−AVHWAccel ff_mpeg2_d3d11va_hwaccel = {
338+const AVHWAccel ff_mpeg2_d3d11va_hwaccel = {
339339 .name = "mpeg2_d3d11va",
340340 .type = AVMEDIA_TYPE_VIDEO,
341341 .id = AV_CODEC_ID_MPEG2VIDEO,
@@ -352,7 +352,7 @@ AVHWAccel ff_mpeg2_d3d11va_hwaccel = { · 10 unmodified lines
352352 #endif
353353
354354 #if CONFIG_MPEG2_D3D11VA2_HWACCEL
355−AVHWAccel ff_mpeg2_d3d11va2_hwaccel = {
355+const AVHWAccel ff_mpeg2_d3d11va2_hwaccel = {
356356 .name = "mpeg2_d3d11va2",
357357 .type = AVMEDIA_TYPE_VIDEO,
358358 .id = AV_CODEC_ID_MPEG2VIDEO,
libavcodec/dxva2_vc1.c+6−6
@@ -318,7 +318,7 @@ static int dxva2_vc1_end_frame(AVCodecContext *avctx) · 317 unmodified lines
318318 }
319319
320320 #if CONFIG_WMV3_DXVA2_HWACCEL
321−AVHWAccel ff_wmv3_dxva2_hwaccel = {
321+const AVHWAccel ff_wmv3_dxva2_hwaccel = {
322322 .name = "wmv3_dxva2",
323323 .type = AVMEDIA_TYPE_VIDEO,
324324 .id = AV_CODEC_ID_WMV3,
@@ -335,7 +335,7 @@ AVHWAccel ff_wmv3_dxva2_hwaccel = { · 10 unmodified lines
335335 #endif
336336
337337 #if CONFIG_VC1_DXVA2_HWACCEL
338−AVHWAccel ff_vc1_dxva2_hwaccel = {
338+const AVHWAccel ff_vc1_dxva2_hwaccel = {
339339 .name = "vc1_dxva2",
340340 .type = AVMEDIA_TYPE_VIDEO,
341341 .id = AV_CODEC_ID_VC1,
@@ -352,7 +352,7 @@ AVHWAccel ff_vc1_dxva2_hwaccel = { · 10 unmodified lines
352352 #endif
353353
354354 #if CONFIG_WMV3_D3D11VA_HWACCEL
355−AVHWAccel ff_wmv3_d3d11va_hwaccel = {
355+const AVHWAccel ff_wmv3_d3d11va_hwaccel = {
356356 .name = "wmv3_d3d11va",
357357 .type = AVMEDIA_TYPE_VIDEO,
358358 .id = AV_CODEC_ID_WMV3,
@@ -369,7 +369,7 @@ AVHWAccel ff_wmv3_d3d11va_hwaccel = { · 10 unmodified lines
369369 #endif
370370
371371 #if CONFIG_WMV3_D3D11VA2_HWACCEL
372−AVHWAccel ff_wmv3_d3d11va2_hwaccel = {
372+const AVHWAccel ff_wmv3_d3d11va2_hwaccel = {
373373 .name = "wmv3_d3d11va2",
374374 .type = AVMEDIA_TYPE_VIDEO,
375375 .id = AV_CODEC_ID_WMV3,
@@ -386,7 +386,7 @@ AVHWAccel ff_wmv3_d3d11va2_hwaccel = { · 10 unmodified lines
386386 #endif
387387
388388 #if CONFIG_VC1_D3D11VA_HWACCEL
389−AVHWAccel ff_vc1_d3d11va_hwaccel = {
389+const AVHWAccel ff_vc1_d3d11va_hwaccel = {
390390 .name = "vc1_d3d11va",
391391 .type = AVMEDIA_TYPE_VIDEO,
392392 .id = AV_CODEC_ID_VC1,
@@ -403,7 +403,7 @@ AVHWAccel ff_vc1_d3d11va_hwaccel = { · 10 unmodified lines
403403 #endif
404404
405405 #if CONFIG_VC1_D3D11VA2_HWACCEL
406−AVHWAccel ff_vc1_d3d11va2_hwaccel = {
406+const AVHWAccel ff_vc1_d3d11va2_hwaccel = {
407407 .name = "vc1_d3d11va2",
408408 .type = AVMEDIA_TYPE_VIDEO,
409409 .id = AV_CODEC_ID_VC1,
libavcodec/hwaccels.h+34−34
@@ -21,39 +21,39 @@ · 20 unmodified lines
2121
2222 #include "avcodec.h"
2323
24−extern AVHWAccel ff_h263_vaapi_hwaccel;
25−extern AVHWAccel ff_h264_cuvid_hwaccel;
26−extern AVHWAccel ff_h264_d3d11va_hwaccel;
27−extern AVHWAccel ff_h264_d3d11va2_hwaccel;
28−extern AVHWAccel ff_h264_dxva2_hwaccel;
29−extern AVHWAccel ff_h264_vaapi_hwaccel;
30−extern AVHWAccel ff_h264_vda_hwaccel;
31−extern AVHWAccel ff_h264_vda_old_hwaccel;
32−extern AVHWAccel ff_h264_vdpau_hwaccel;
33−extern AVHWAccel ff_hevc_cuvid_hwaccel;
34−extern AVHWAccel ff_hevc_d3d11va_hwaccel;
35−extern AVHWAccel ff_hevc_d3d11va2_hwaccel;
36−extern AVHWAccel ff_hevc_dxva2_hwaccel;
37−extern AVHWAccel ff_hevc_vaapi_hwaccel;
38−extern AVHWAccel ff_hevc_vdpau_hwaccel;
39−extern AVHWAccel ff_mpeg1_vdpau_hwaccel;
40−extern AVHWAccel ff_mpeg2_d3d11va_hwaccel;
41−extern AVHWAccel ff_mpeg2_d3d11va2_hwaccel;
42−extern AVHWAccel ff_mpeg2_dxva2_hwaccel;
43−extern AVHWAccel ff_mpeg2_vaapi_hwaccel;
44−extern AVHWAccel ff_mpeg2_vdpau_hwaccel;
45−extern AVHWAccel ff_mpeg4_vaapi_hwaccel;
46−extern AVHWAccel ff_mpeg4_vdpau_hwaccel;
47−extern AVHWAccel ff_vc1_d3d11va_hwaccel;
48−extern AVHWAccel ff_vc1_d3d11va2_hwaccel;
49−extern AVHWAccel ff_vc1_dxva2_hwaccel;
50−extern AVHWAccel ff_vc1_vaapi_hwaccel;
51−extern AVHWAccel ff_vc1_vdpau_hwaccel;
52−extern AVHWAccel ff_vp8_vaapi_hwaccel;
53−extern AVHWAccel ff_wmv3_d3d11va_hwaccel;
54−extern AVHWAccel ff_wmv3_d3d11va2_hwaccel;
55−extern AVHWAccel ff_wmv3_dxva2_hwaccel;
56−extern AVHWAccel ff_wmv3_vaapi_hwaccel;
57−extern AVHWAccel ff_wmv3_vdpau_hwaccel;
24+extern const AVHWAccel ff_h263_vaapi_hwaccel;
25+extern const AVHWAccel ff_h264_cuvid_hwaccel;
26+extern const AVHWAccel ff_h264_d3d11va_hwaccel;
27+extern const AVHWAccel ff_h264_d3d11va2_hwaccel;
28+extern const AVHWAccel ff_h264_dxva2_hwaccel;
29+extern const AVHWAccel ff_h264_vaapi_hwaccel;
30+extern const AVHWAccel ff_h264_vda_hwaccel;
31+extern const AVHWAccel ff_h264_vda_old_hwaccel;
32+extern const AVHWAccel ff_h264_vdpau_hwaccel;
33+extern const AVHWAccel ff_hevc_cuvid_hwaccel;
34+extern const AVHWAccel ff_hevc_d3d11va_hwaccel;
35+extern const AVHWAccel ff_hevc_d3d11va2_hwaccel;
36+extern const AVHWAccel ff_hevc_dxva2_hwaccel;
37+extern const AVHWAccel ff_hevc_vaapi_hwaccel;
38+extern const AVHWAccel ff_hevc_vdpau_hwaccel;
39+extern const AVHWAccel ff_mpeg1_vdpau_hwaccel;
40+extern const AVHWAccel ff_mpeg2_d3d11va_hwaccel;
41+extern const AVHWAccel ff_mpeg2_d3d11va2_hwaccel;
42+extern const AVHWAccel ff_mpeg2_dxva2_hwaccel;
43+extern const AVHWAccel ff_mpeg2_vaapi_hwaccel;
44+extern const AVHWAccel ff_mpeg2_vdpau_hwaccel;
45+extern const AVHWAccel ff_mpeg4_vaapi_hwaccel;
46+extern const AVHWAccel ff_mpeg4_vdpau_hwaccel;
47+extern const AVHWAccel ff_vc1_d3d11va_hwaccel;
48+extern const AVHWAccel ff_vc1_d3d11va2_hwaccel;
49+extern const AVHWAccel ff_vc1_dxva2_hwaccel;
50+extern const AVHWAccel ff_vc1_vaapi_hwaccel;
51+extern const AVHWAccel ff_vc1_vdpau_hwaccel;
52+extern const AVHWAccel ff_vp8_vaapi_hwaccel;
53+extern const AVHWAccel ff_wmv3_d3d11va_hwaccel;
54+extern const AVHWAccel ff_wmv3_d3d11va2_hwaccel;
55+extern const AVHWAccel ff_wmv3_dxva2_hwaccel;
56+extern const AVHWAccel ff_wmv3_vaapi_hwaccel;
57+extern const AVHWAccel ff_wmv3_vdpau_hwaccel;
5858
5959 #endif /* AVCODEC_HWACCELS_H */
libavcodec/vaapi_h264.c+1−1
@@ -388,7 +388,7 @@ static int vaapi_h264_decode_slice(AVCodecContext *avctx, · 387 unmodified lines
388388 return 0;
389389 }
390390
391−AVHWAccel ff_h264_vaapi_hwaccel = {
391+const AVHWAccel ff_h264_vaapi_hwaccel = {
392392 .name = "h264_vaapi",
393393 .type = AVMEDIA_TYPE_VIDEO,
394394 .id = AV_CODEC_ID_H264,
libavcodec/vaapi_hevc.c+1−1
@@ -423,7 +423,7 @@ static int vaapi_hevc_decode_slice(AVCodecContext *avctx, · 422 unmodified lines
423423 return 0;
424424 }
425425
426−AVHWAccel ff_hevc_vaapi_hwaccel = {
426+const AVHWAccel ff_hevc_vaapi_hwaccel = {
427427 .name = "hevc_vaapi",
428428 .type = AVMEDIA_TYPE_VIDEO,
429429 .id = AV_CODEC_ID_HEVC,
libavcodec/vaapi_mpeg2.c+1−1
@@ -173,7 +173,7 @@ static int vaapi_mpeg2_decode_slice(AVCodecContext *avctx, const uint8_t *buffer · 172 unmodified lines
173173 return 0;
174174 }
175175
176−AVHWAccel ff_mpeg2_vaapi_hwaccel = {
176+const AVHWAccel ff_mpeg2_vaapi_hwaccel = {
177177 .name = "mpeg2_vaapi",
178178 .type = AVMEDIA_TYPE_VIDEO,
179179 .id = AV_CODEC_ID_MPEG2VIDEO,
libavcodec/vaapi_mpeg4.c+2−2
@@ -189,7 +189,7 @@ static int vaapi_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer · 188 unmodified lines
189189 }
190190
191191 #if CONFIG_MPEG4_VAAPI_HWACCEL
192−AVHWAccel ff_mpeg4_vaapi_hwaccel = {
192+const AVHWAccel ff_mpeg4_vaapi_hwaccel = {
193193 .name = "mpeg4_vaapi",
194194 .type = AVMEDIA_TYPE_VIDEO,
195195 .id = AV_CODEC_ID_MPEG4,
@@ -207,7 +207,7 @@ AVHWAccel ff_mpeg4_vaapi_hwaccel = { · 11 unmodified lines
207207 #endif
208208
209209 #if CONFIG_H263_VAAPI_HWACCEL
210−AVHWAccel ff_h263_vaapi_hwaccel = {
210+const AVHWAccel ff_h263_vaapi_hwaccel = {
211211 .name = "h263_vaapi",
212212 .type = AVMEDIA_TYPE_VIDEO,
213213 .id = AV_CODEC_ID_H263,
libavcodec/vaapi_vc1.c+2−2
@@ -388,7 +388,7 @@ static int vaapi_vc1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, · 387 unmodified lines
388388 }
389389
390390 #if CONFIG_WMV3_VAAPI_HWACCEL
391−AVHWAccel ff_wmv3_vaapi_hwaccel = {
391+const AVHWAccel ff_wmv3_vaapi_hwaccel = {
392392 .name = "wmv3_vaapi",
393393 .type = AVMEDIA_TYPE_VIDEO,
394394 .id = AV_CODEC_ID_WMV3,
@@ -405,7 +405,7 @@ AVHWAccel ff_wmv3_vaapi_hwaccel = { · 10 unmodified lines
405405 };
406406 #endif
407407
408−AVHWAccel ff_vc1_vaapi_hwaccel = {
408+const AVHWAccel ff_vc1_vaapi_hwaccel = {
409409 .name = "vc1_vaapi",
410410 .type = AVMEDIA_TYPE_VIDEO,
411411 .id = AV_CODEC_ID_VC1,
libavcodec/vaapi_vp8.c+1−1
@@ -220,7 +220,7 @@ fail: · 219 unmodified lines
220220 return err;
221221 }
222222
223−AVHWAccel ff_vp8_vaapi_hwaccel = {
223+const AVHWAccel ff_vp8_vaapi_hwaccel = {
224224 .name = "vp8_vaapi",
225225 .type = AVMEDIA_TYPE_VIDEO,
226226 .id = AV_CODEC_ID_VP8,
libavcodec/vda_h264.c+2−2
@@ -247,7 +247,7 @@ static int vda_h264_uninit(AVCodecContext *avctx) · 246 unmodified lines
247247 return 0;
248248 }
249249
250−AVHWAccel ff_h264_vda_old_hwaccel = {
250+const AVHWAccel ff_h264_vda_old_hwaccel = {
251251 .name = "h264_vda",
252252 .type = AVMEDIA_TYPE_VIDEO,
253253 .id = AV_CODEC_ID_H264,
@@ -483,7 +483,7 @@ static int vda_h264_alloc_frame(AVCodecContext *avctx, AVFrame *frame) · 229 unmodified lines
483483 return 0;
484484 }
485485
486−AVHWAccel ff_h264_vda_hwaccel = {
486+const AVHWAccel ff_h264_vda_hwaccel = {
487487 .name = "h264_vda",
488488 .type = AVMEDIA_TYPE_VIDEO,
489489 .id = AV_CODEC_ID_H264,
libavcodec/vdpau_h264.c+1−1
@@ -262,7 +262,7 @@ static int vdpau_h264_init(AVCodecContext *avctx) · 261 unmodified lines
262262 return ff_vdpau_common_init(avctx, profile, level);
263263 }
264264
265−AVHWAccel ff_h264_vdpau_hwaccel = {
265+const AVHWAccel ff_h264_vdpau_hwaccel = {
266266 .name = "h264_vdpau",
267267 .type = AVMEDIA_TYPE_VIDEO,
268268 .id = AV_CODEC_ID_H264,
libavcodec/vdpau_hevc.c+1−1
@@ -413,7 +413,7 @@ static int vdpau_hevc_init(AVCodecContext *avctx) · 412 unmodified lines
413413 return ff_vdpau_common_init(avctx, profile, level);
414414 }
415415
416−AVHWAccel ff_hevc_vdpau_hwaccel = {
416+const AVHWAccel ff_hevc_vdpau_hwaccel = {
417417 .name = "hevc_vdpau",
418418 .type = AVMEDIA_TYPE_VIDEO,
419419 .id = AV_CODEC_ID_HEVC,
libavcodec/vdpau_mpeg12.c+2−2
@@ -103,7 +103,7 @@ static int vdpau_mpeg1_init(AVCodecContext *avctx) · 102 unmodified lines
103103 VDP_DECODER_LEVEL_MPEG1_NA);
104104 }
105105
106−AVHWAccel ff_mpeg1_vdpau_hwaccel = {
106+const AVHWAccel ff_mpeg1_vdpau_hwaccel = {
107107 .name = "mpeg1_vdpau",
108108 .type = AVMEDIA_TYPE_VIDEO,
109109 .id = AV_CODEC_ID_MPEG1VIDEO,
@@ -138,7 +138,7 @@ static int vdpau_mpeg2_init(AVCodecContext *avctx) · 28 unmodified lines
138138 return ff_vdpau_common_init(avctx, profile, VDP_DECODER_LEVEL_MPEG2_HL);
139139 }
140140
141−AVHWAccel ff_mpeg2_vdpau_hwaccel = {
141+const AVHWAccel ff_mpeg2_vdpau_hwaccel = {
142142 .name = "mpeg2_vdpau",
143143 .type = AVMEDIA_TYPE_VIDEO,
144144 .id = AV_CODEC_ID_MPEG2VIDEO,
libavcodec/vdpau_mpeg4.c+1−1
@@ -107,7 +107,7 @@ static int vdpau_mpeg4_init(AVCodecContext *avctx) · 106 unmodified lines
107107 return ff_vdpau_common_init(avctx, profile, avctx->level);
108108 }
109109
110−AVHWAccel ff_mpeg4_vdpau_hwaccel = {
110+const AVHWAccel ff_mpeg4_vdpau_hwaccel = {
111111 .name = "mpeg4_vdpau",
112112 .type = AVMEDIA_TYPE_VIDEO,
113113 .id = AV_CODEC_ID_MPEG4,
libavcodec/vdpau_vc1.c+2−2
@@ -132,7 +132,7 @@ static int vdpau_vc1_init(AVCodecContext *avctx) · 131 unmodified lines
132132 }
133133
134134 #if CONFIG_WMV3_VDPAU_HWACCEL
135−AVHWAccel ff_wmv3_vdpau_hwaccel = {
135+const AVHWAccel ff_wmv3_vdpau_hwaccel = {
136136 .name = "wm3_vdpau",
137137 .type = AVMEDIA_TYPE_VIDEO,
138138 .id = AV_CODEC_ID_WMV3,
@@ -149,7 +149,7 @@ AVHWAccel ff_wmv3_vdpau_hwaccel = { · 10 unmodified lines
149149 };
150150 #endif
151151
152−AVHWAccel ff_vc1_vdpau_hwaccel = {
152+const AVHWAccel ff_vc1_vdpau_hwaccel = {
153153 .name = "vc1_vdpau",
154154 .type = AVMEDIA_TYPE_VIDEO,
155155 .id = AV_CODEC_ID_VC1,
libavcodec/version.h+1−1
@@ -28,7 +28,7 @@ · 27 unmodified lines
2828 #include "libavutil/version.h"
2929
3030 #define LIBAVCODEC_VERSION_MAJOR 58
31−#define LIBAVCODEC_VERSION_MINOR 7
31+#define LIBAVCODEC_VERSION_MINOR 8
3232 #define LIBAVCODEC_VERSION_MICRO 0
3333
3434 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t