Commit f932e5f7 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/vdpau_internal: move "struct vdpau_picture_context" up to avoid "#else"

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d5d6b8e2
...@@ -42,6 +42,7 @@ static inline uintptr_t ff_vdpau_get_surface_id(AVFrame *pic) ...@@ -42,6 +42,7 @@ static inline uintptr_t ff_vdpau_get_surface_id(AVFrame *pic)
return (uintptr_t)pic->data[3]; return (uintptr_t)pic->data[3];
} }
struct vdpau_picture_context;
#if CONFIG_VDPAU #if CONFIG_VDPAU
#if !FF_API_BUFS_VDPAU #if !FF_API_BUFS_VDPAU
union AVVDPAUPictureInfo { union AVVDPAUPictureInfo {
...@@ -75,8 +76,6 @@ struct vdpau_picture_context { ...@@ -75,8 +76,6 @@ struct vdpau_picture_context {
*/ */
VdpBitstreamBuffer *bitstream_buffers; VdpBitstreamBuffer *bitstream_buffers;
}; };
#else
struct vdpau_picture_context;
#endif #endif
int ff_vdpau_common_start_frame(struct vdpau_picture_context *pic, int ff_vdpau_common_start_frame(struct vdpau_picture_context *pic,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment