mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-25 08:56:59 +08:00
lavc: Mark all AVHWAccel structures as const
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user