[libav-devel] [PATCH] vdpau: Add missing #includes to fix standalone header compilation

Diego Biurrun diego at biurrun.de
Mon Nov 4 18:16:46 CET 2013


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

diff --git a/libavcodec/vdpau.h b/libavcodec/vdpau.h
index 8bedea5..bf8f666 100644
--- a/libavcodec/vdpau.h
+++ b/libavcodec/vdpau.h
@@ -52,6 +52,8 @@
 #include <vdpau/vdpau.h>
 #include <vdpau/vdpau_x11.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..2fc42d2 100644
--- a/libavcodec/vdpau_internal.h
+++ b/libavcodec/vdpau_internal.h
@@ -26,8 +26,11 @@
 
 #include <stdint.h>
 #include <vdpau/vdpau.h>
-#include "h264.h"
+
+#include "avcodec.h"
 #include "mpegvideo.h"
+#include "vdpau.h"
+#include "version.h"
 
 /** Extract VdpVideoSurface from a Picture */
 static inline uintptr_t ff_vdpau_get_surface_id(Picture *pic)
-- 
1.7.9.5



More information about the libav-devel mailing list