]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vdpau_internal.h
h264: rebuild the default ref list if the reference count changes
[ffmpeg] / libavcodec / vdpau_internal.h
index e93c6723d8dcee2b9f3df031fa65f79866a6920b..50c4f5e74cd2a6a8f48b22d0bf6eeaeb154052e4 100644 (file)
 
 #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)
@@ -35,6 +37,17 @@ static inline uintptr_t ff_vdpau_get_surface_id(Picture *pic)
     return (uintptr_t)pic->f.data[3];
 }
 
+#if !FF_API_BUFS_VDPAU
+union AVVDPAUPictureInfo {
+    VdpPictureInfoH264        h264;
+    VdpPictureInfoMPEG1Or2    mpeg;
+    VdpPictureInfoVC1          vc1;
+    VdpPictureInfoMPEG4Part2 mpeg4;
+};
+#else
+#include "vdpau.h"
+#endif
+
 struct vdpau_picture_context {
     /**
      * VDPAU picture information.