From fcc1022611f79c2f3aa2f392a5ce14c74be9c1d7 Mon Sep 17 00:00:00 2001 From: RĂ©mi Denis-Courmont Date: Sat, 4 Oct 2014 16:55:03 +0300 Subject: vdpau: factor out common end-of-frame handling Also add error handling. Signed-off-by: Anton Khirnov --- libavcodec/vdpau_internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/vdpau_internal.h') diff --git a/libavcodec/vdpau_internal.h b/libavcodec/vdpau_internal.h index 2443e0a911..3f55ee7dc9 100644 --- a/libavcodec/vdpau_internal.h +++ b/libavcodec/vdpau_internal.h @@ -72,6 +72,8 @@ struct vdpau_picture_context { int ff_vdpau_common_start_frame(struct vdpau_picture_context *pic, const uint8_t *buffer, uint32_t size); +int ff_vdpau_common_end_frame(AVCodecContext *avctx, AVFrame *frame, + struct vdpau_picture_context *pic); int ff_vdpau_mpeg_end_frame(AVCodecContext *avctx); int ff_vdpau_add_buffer(struct vdpau_picture_context *pic, const uint8_t *buf, uint32_t buf_size); -- cgit v1.2.3