avcodec/vdpau.h: define FF_API_CAP_VDPAU if its not defined
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Aug 2013 12:03:40 +0000 (14:03 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Aug 2013 12:15:17 +0000 (14:15 +0200)
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@gmx.at>
libavcodec/vdpau.h

index 545b154..91948e7 100644 (file)
 #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;