diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2015-08-16 19:35:59 -0400 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2015-08-18 15:57:19 -0400 |
commit | 030b5a4f777b59066f1766030db082a53682994d (patch) | |
tree | fa4925411e7246103c96ba9a7c6fae69d273a3ce /libavcodec/utils.c | |
parent | 7a629186ba0481f4aef1d9590d0e55b3bc5f4ed0 (diff) | |
download | ffmpeg-030b5a4f777b59066f1766030db082a53682994d.tar.gz |
lavc: put remaining bits of vdpau-in-decoder under FF_API_CAP_VDPAU.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 22dcc8247c..4da16eeb54 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1243,8 +1243,10 @@ int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt) if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL)) break; +#if FF_API_CAP_VDPAU if (avctx->codec->capabilities&AV_CODEC_CAP_HWACCEL_VDPAU) break; +#endif if (!setup_hwaccel(avctx, ret, desc->name)) break; |