diff options
author | RĂ©mi Denis-Courmont <remi@remlab.net> | 2014-10-04 16:55:05 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-10-05 10:41:31 +0000 |
commit | 89ac99ba5f2dc9f69ad3bc294753930eb0b3e4a4 (patch) | |
tree | e7f7bd220d603c1755f045f350a5319ee355a334 /libavcodec/vdpau.c | |
parent | ce083282f0a8b7d63c4047c30b7bac498f9806dd (diff) | |
download | ffmpeg-streaming-89ac99ba5f2dc9f69ad3bc294753930eb0b3e4a4.zip ffmpeg-streaming-89ac99ba5f2dc9f69ad3bc294753930eb0b3e4a4.tar.gz |
vdpau: pass codec-specific parameters from hwaccel
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/vdpau.c')
-rw-r--r-- | libavcodec/vdpau.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c index 48bc365..ed8fd7f 100644 --- a/libavcodec/vdpau.c +++ b/libavcodec/vdpau.c @@ -139,11 +139,11 @@ int ff_vdpau_common_start_frame(struct vdpau_picture_context *pic_ctx, int ff_vdpau_common_end_frame(AVCodecContext *avctx, AVFrame *frame, struct vdpau_picture_context *pic_ctx) { - AVVDPAUContext *hwctx = avctx->hwaccel_context; + VDPAUContext *vdctx = avctx->internal->hwaccel_priv_data; VdpVideoSurface surf = ff_vdpau_get_surface_id(frame); VdpStatus status; - status = hwctx->render(hwctx->decoder, surf, (void *)&pic_ctx->info, + status = vdctx->render(vdctx->decoder, surf, (void *)&pic_ctx->info, pic_ctx->bitstream_buffers_used, pic_ctx->bitstream_buffers); |