[FFmpeg-cvslog] vdpau: Add missing #includes to fix standalone header compilation

Diego Biurrun git at videolan.org
Tue Nov 5 11:20:35 CET 2013


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Nov  4 18:16:46 2013 +0100| [70cbf33405f50dfaf77e85f382a188acf17dc71a] | committer: Anton Khirnov

vdpau: Add missing #includes to fix standalone header compilation

Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=70cbf33405f50dfaf77e85f382a188acf17dc71a
---

 libavcodec/vdpau.h          |    4 ++++
 libavcodec/vdpau_internal.h |    6 +++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/libavcodec/vdpau.h b/libavcodec/vdpau.h
index 8bedea5..4035f63 100644
--- a/libavcodec/vdpau.h
+++ b/libavcodec/vdpau.h
@@ -52,6 +52,10 @@
 #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;
diff --git a/libavcodec/vdpau_internal.h b/libavcodec/vdpau_internal.h
index 9e4ab4e..50c4f5e 100644
--- a/libavcodec/vdpau_internal.h
+++ b/libavcodec/vdpau_internal.h
@@ -26,8 +26,10 @@
 
 #include <stdint.h>
 #include <vdpau/vdpau.h>
-#include "h264.h"
+
+#include "avcodec.h"
 #include "mpegvideo.h"
+#include "version.h"
 
 /** 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;
 };
+#else
+#include "vdpau.h"
 #endif
 
 struct vdpau_picture_context {



More information about the ffmpeg-cvslog mailing list