X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fvdpau_h264.c;h=2a260f76abae4b70d3ed3eec212f22b97b610519;hb=d204b7ff610cb8dac1116e7a4fd3068733cb5adf;hp=be6ba7143334883d4270a56025f615b3fbb31ac5;hpb=1a24d4f020ee52154d2b369d6fc3d5056b5719c8;p=ffmpeg diff --git a/libavcodec/vdpau_h264.c b/libavcodec/vdpau_h264.c index be6ba714333..2a260f76aba 100644 --- a/libavcodec/vdpau_h264.c +++ b/libavcodec/vdpau_h264.c @@ -262,7 +262,7 @@ static int vdpau_h264_init(AVCodecContext *avctx) return ff_vdpau_common_init(avctx, profile, level); } -AVHWAccel ff_h264_vdpau_hwaccel = { +const AVHWAccel ff_h264_vdpau_hwaccel = { .name = "h264_vdpau", .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_H264, @@ -273,6 +273,7 @@ AVHWAccel ff_h264_vdpau_hwaccel = { .frame_priv_data_size = sizeof(struct vdpau_picture_context), .init = vdpau_h264_init, .uninit = ff_vdpau_common_uninit, + .frame_params = ff_vdpau_common_frame_params, .priv_data_size = sizeof(VDPAUContext), .caps_internal = HWACCEL_CAP_ASYNC_SAFE, };