diff options
author | Sebastien Zwickert <dilaroga@gmail.com> | 2015-07-11 17:21:39 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2015-08-05 17:47:30 +0200 |
commit | 31b5a211f4421cd593ef7eacda9efb9ee57a59d6 (patch) | |
tree | 4829f9d33e1ec7c604cbf0e3a38d7c26fdd09e3f /video/out/gl_hwdec.c | |
parent | 417e256c215e555198db1796edec3cfafd044459 (diff) | |
download | mpv-31b5a211f4421cd593ef7eacda9efb9ee57a59d6.tar.bz2 mpv-31b5a211f4421cd593ef7eacda9efb9ee57a59d6.tar.xz |
hwdec: add VideoToolbox support
VDA is being deprecated in OS X 10.11 so this is needed to keep hwdec working.
The code needs libavcodec support which was added recently (to FFmpeg git,
libav doesn't support it).
Signed-off-by: Stefano Pigozzi <stefano.pigozzi@gmail.com>
Diffstat (limited to 'video/out/gl_hwdec.c')
-rw-r--r-- | video/out/gl_hwdec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/gl_hwdec.c b/video/out/gl_hwdec.c index c32f36a699..17a7c7bb67 100644 --- a/video/out/gl_hwdec.c +++ b/video/out/gl_hwdec.c @@ -31,6 +31,7 @@ extern const struct gl_hwdec_driver gl_hwdec_vaglx; extern const struct gl_hwdec_driver gl_hwdec_vda; +extern const struct gl_hwdec_driver gl_hwdec_videotoolbox; extern const struct gl_hwdec_driver gl_hwdec_vdpau; extern const struct gl_hwdec_driver gl_hwdec_dxva2; @@ -47,6 +48,9 @@ static const struct gl_hwdec_driver *const mpgl_hwdec_drivers[] = { #if HAVE_DXVA2_HWACCEL &gl_hwdec_dxva2, #endif +#if HAVE_VIDEOTOOLBOX_GL + &gl_hwdec_videotoolbox, +#endif NULL }; |