[FFmpeg-cvslog] vdpau: Add missing deprecation guards

Vittorio Giovara git at videolan.org
Wed Apr 13 17:22:32 CEST 2016


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Tue Mar  1 15:34:23 2016 -0500| [e10b7ef2fe56603fb1baac6b20fd6bd0a3fdd0d0] | committer: Vittorio Giovara

vdpau: Add missing deprecation guards

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

 libavcodec/vdpau.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c
index dd48c04..bf5f8d9 100644
--- a/libavcodec/vdpau.c
+++ b/libavcodec/vdpau.c
@@ -317,6 +317,7 @@ int ff_vdpau_add_buffer(struct vdpau_picture_context *pic_ctx,
     return 0;
 }
 
+#if FF_API_VDPAU_PROFILE
 int av_vdpau_get_profile(AVCodecContext *avctx, VdpDecoderProfile *profile)
 {
 #define PROFILE(prof)                      \
@@ -363,6 +364,7 @@ do {                                       \
     return AVERROR(EINVAL);
 #undef PROFILE
 }
+#endif /* FF_API_VDPAU_PROFILE */
 
 AVVDPAUContext *av_vdpau_alloc_context(void)
 {



More information about the ffmpeg-cvslog mailing list