]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vdpau.c
ape: Unbreak adaptcoeffs computation
[ffmpeg] / libavcodec / vdpau.c
index a01c445c7fadf80c741f1394099c1fa056452e23..7f8690e716e36ec28e0b37c26a964ecc483b5881 100644 (file)
@@ -694,6 +694,7 @@ void ff_vdpau_mpeg4_decode_picture(Mpeg4DecContext *ctx, const uint8_t *buf,
 #endif /* CONFIG_MPEG4_VDPAU_DECODER */
 #endif /* FF_API_VDPAU */
 
+#if FF_API_VDPAU_PROFILE
 int av_vdpau_get_profile(AVCodecContext *avctx, VdpDecoderProfile *profile)
 {
 #define PROFILE(prof)                      \
@@ -740,6 +741,7 @@ do {                                       \
     return AVERROR(EINVAL);
 #undef PROFILE
 }
+#endif /* FF_API_VDPAU_PROFILE */
 
 AVVDPAUContext *av_vdpau_alloc_context(void)
 {