vdpau: Add missing #includes to fix standalone header compilation
authorDiego Biurrun <diego@biurrun.de>
Mon, 4 Nov 2013 17:16:46 +0000 (18:16 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 4 Nov 2013 21:54:55 +0000 (22:54 +0100)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/vdpau.h
libavcodec/vdpau_internal.h

index 8bedea5..4035f63 100644 (file)
 #include <vdpau/vdpau.h>
 #include <vdpau/vdpau_x11.h>
 
 #include <vdpau/vdpau.h>
 #include <vdpau/vdpau_x11.h>
 
+#include "libavutil/attributes.h"
+
+#include "version.h"
+
 #if FF_API_BUFS_VDPAU
 union AVVDPAUPictureInfo {
     VdpPictureInfoH264        h264;
 #if FF_API_BUFS_VDPAU
 union AVVDPAUPictureInfo {
     VdpPictureInfoH264        h264;
index 9e4ab4e..50c4f5e 100644 (file)
 
 #include <stdint.h>
 #include <vdpau/vdpau.h>
 
 #include <stdint.h>
 #include <vdpau/vdpau.h>
-#include "h264.h"
+
+#include "avcodec.h"
 #include "mpegvideo.h"
 #include "mpegvideo.h"
+#include "version.h"
 
 /** Extract VdpVideoSurface from a Picture */
 static inline uintptr_t ff_vdpau_get_surface_id(Picture *pic)
 
 /** Extract VdpVideoSurface from a Picture */
 static inline uintptr_t ff_vdpau_get_surface_id(Picture *pic)
@@ -42,6 +44,8 @@ union AVVDPAUPictureInfo {
     VdpPictureInfoVC1          vc1;
     VdpPictureInfoMPEG4Part2 mpeg4;
 };
     VdpPictureInfoVC1          vc1;
     VdpPictureInfoMPEG4Part2 mpeg4;
 };
+#else
+#include "vdpau.h"
 #endif
 
 struct vdpau_picture_context {
 #endif
 
 struct vdpau_picture_context {