diff options
author | RĂ©mi Denis-Courmont <remi@remlab.net> | 2014-10-04 16:55:03 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-10-05 10:13:44 +0000 |
commit | fcc1022611f79c2f3aa2f392a5ce14c74be9c1d7 (patch) | |
tree | ac464a1ca7ecd6699e49528132a442ac69d2fd88 /libavcodec/vdpau_internal.h | |
parent | 319424d25c53f82b87187ce03ed984d438f1bee6 (diff) | |
download | ffmpeg-fcc1022611f79c2f3aa2f392a5ce14c74be9c1d7.tar.gz |
vdpau: factor out common end-of-frame handling
Also add error handling.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/vdpau_internal.h')
-rw-r--r-- | libavcodec/vdpau_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |