[FFmpeg-cvslog] avcodec/vdpau.h: define FF_API_CAP_VDPAU if its not defined

Michael Niedermayer git at videolan.org
Tue Aug 6 14:25:01 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Aug  6 14:03:40 2013 +0200| [50fb8c1114b9c2b7d299cbc17a18a457d12069a8] | committer: Michael Niedermayer

avcodec/vdpau.h: define FF_API_CAP_VDPAU if its not defined

Prevent build failure for applicatins using the old API
This could be replaced be a include of version.h but some applications
would then need extern C wrapers

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/vdpau.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/vdpau.h b/libavcodec/vdpau.h
index 545b154..91948e7 100644
--- a/libavcodec/vdpau.h
+++ b/libavcodec/vdpau.h
@@ -53,6 +53,10 @@
 #include <vdpau/vdpau_x11.h>
 #include "libavutil/avconfig.h"
 
+#ifndef FF_API_CAP_VDPAU
+#define FF_API_CAP_VDPAU 1
+#endif
+
 union AVVDPAUPictureInfo {
     VdpPictureInfoH264        h264;
     VdpPictureInfoMPEG1Or2    mpeg;



More information about the ffmpeg-cvslog mailing list