summaryrefslogtreecommitdiff
path: root/libavcodec/vdpau_internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-22 01:53:54 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-22 01:53:54 +0200
commitf932e5f7169282daaa06b08500d2c632cf70e14e (patch)
tree6377bce3eb697b2e9f21ec72f92524664f5033ca /libavcodec/vdpau_internal.h
parentd5d6b8e259793d0f96f820d4d724652268f0f8d4 (diff)
downloadffmpeg-f932e5f7169282daaa06b08500d2c632cf70e14e.tar.gz
avcodec/vdpau_internal: move "struct vdpau_picture_context" up to avoid "#else"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vdpau_internal.h')
-rw-r--r--libavcodec/vdpau_internal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/vdpau_internal.h b/libavcodec/vdpau_internal.h
index a7319ed77e..0f3652b729 100644
--- a/libavcodec/vdpau_internal.h
+++ b/libavcodec/vdpau_internal.h
@@ -42,6 +42,7 @@ static inline uintptr_t ff_vdpau_get_surface_id(AVFrame *pic)
return (uintptr_t)pic->data[3];
}
+struct vdpau_picture_context;
#if CONFIG_VDPAU
#if !FF_API_BUFS_VDPAU
union AVVDPAUPictureInfo {
@@ -75,8 +76,6 @@ struct vdpau_picture_context {
*/
VdpBitstreamBuffer *bitstream_buffers;
};
-#else
-struct vdpau_picture_context;
#endif
int ff_vdpau_common_start_frame(struct vdpau_picture_context *pic,