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>
This commit is contained in:
Michael Niedermayer 2013-08-06 14:03:40 +02:00
parent 3b805dcaa9
commit 50fb8c1114
1 changed files with 4 additions and 0 deletions

View File

@ -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;