X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fvdpau_hevc.c;h=3b575eb7862b6d4f469c120e54253a005c8321e3;hb=ad99cbc9b3f4e0fae5c9bc5291d422d477dbf069;hp=829945614c9f458186eafbb4deed6003124b6bc5;hpb=150c896a9e46b23b97debb0a5f66fbaeaa32f153;p=ffmpeg diff --git a/libavcodec/vdpau_hevc.c b/libavcodec/vdpau_hevc.c index 829945614c9..3b575eb7862 100644 --- a/libavcodec/vdpau_hevc.c +++ b/libavcodec/vdpau_hevc.c @@ -26,6 +26,7 @@ #include "internal.h" #include "hevc_data.h" #include "hevcdec.h" +#include "hwaccel.h" #include "vdpau.h" #include "vdpau_internal.h" @@ -412,7 +413,7 @@ static int vdpau_hevc_init(AVCodecContext *avctx) return ff_vdpau_common_init(avctx, profile, level); } -AVHWAccel ff_hevc_vdpau_hwaccel = { +const AVHWAccel ff_hevc_vdpau_hwaccel = { .name = "hevc_vdpau", .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_HEVC, @@ -423,5 +424,7 @@ AVHWAccel ff_hevc_vdpau_hwaccel = { .frame_priv_data_size = sizeof(struct vdpau_picture_context), .init = vdpau_hevc_init, .uninit = ff_vdpau_common_uninit, + .frame_params = ff_vdpau_common_frame_params, .priv_data_size = sizeof(VDPAUContext), + .caps_internal = HWACCEL_CAP_ASYNC_SAFE, };