diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-03-23 17:56:05 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-05-12 12:59:16 +0200 |
commit | e0e79a2e7edaa86e680553a47f46ebbe78c98df9 (patch) | |
tree | 9f664c12207382a28d0ae41e2ea8ce5f162e3290 /video/fmt-conversion.c | |
parent | dab56b5fd5b1e9e0b1492305c37aede88c500876 (diff) | |
download | mpv-e0e79a2e7edaa86e680553a47f46ebbe78c98df9.tar.bz2 mpv-e0e79a2e7edaa86e680553a47f46ebbe78c98df9.tar.xz |
vda: Hwaccel 1.2 support
Use the new context and the default functions provided.
Diffstat (limited to 'video/fmt-conversion.c')
-rw-r--r-- | video/fmt-conversion.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/fmt-conversion.c b/video/fmt-conversion.c index bb296b596d..88e10c924e 100644 --- a/video/fmt-conversion.c +++ b/video/fmt-conversion.c @@ -21,6 +21,7 @@ #include "video/img_format.h" #include "fmt-conversion.h" +#include "config.h" static const struct { int fmt; @@ -172,7 +173,11 @@ static const struct { #endif {IMGFMT_VDPAU, AV_PIX_FMT_VDPAU}, +#if HAVE_VDA_AV_VDA_ALLOC_CONTEXT + {IMGFMT_VDA, AV_PIX_FMT_VDA}, +#else {IMGFMT_VDA, AV_PIX_FMT_VDA_VLD}, +#endif {IMGFMT_VAAPI, AV_PIX_FMT_VAAPI_VLD}, {0, AV_PIX_FMT_NONE} |