diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-06 14:03:40 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-06 14:15:17 +0200 |
commit | 50fb8c1114b9c2b7d299cbc17a18a457d12069a8 (patch) | |
tree | 4e551bad992c0418c4e8cd81b41fadfe7b7d0bd8 /libavcodec/vdpau.h | |
parent | 3b805dcaa97ed8ac085d6af07ba450846f8487e3 (diff) | |
download | ffmpeg-50fb8c1114b9c2b7d299cbc17a18a457d12069a8.tar.gz |
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@gmx.at>
Diffstat (limited to 'libavcodec/vdpau.h')
-rw-r--r-- | libavcodec/vdpau.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/vdpau.h b/libavcodec/vdpau.h index 545b154be0..91948e707b 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; |