summaryrefslogtreecommitdiffstats
path: root/video/img_format.c
diff options
context:
space:
mode:
authorSebastien Zwickert <dilaroga@gmail.com>2015-07-11 17:21:39 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2015-08-05 17:47:30 +0200
commit31b5a211f4421cd593ef7eacda9efb9ee57a59d6 (patch)
tree4829f9d33e1ec7c604cbf0e3a38d7c26fdd09e3f /video/img_format.c
parent417e256c215e555198db1796edec3cfafd044459 (diff)
downloadmpv-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/img_format.c')
-rw-r--r--video/img_format.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/img_format.c b/video/img_format.c
index 6cf585db61..5defa6662e 100644
--- a/video/img_format.c
+++ b/video/img_format.c
@@ -36,6 +36,7 @@ static const struct mp_imgfmt_entry mp_imgfmt_list[] = {
{"vdpau_output", IMGFMT_VDPAU_OUTPUT},
// FFmpeg names have an annoying "_vld" suffix
{"vda", IMGFMT_VDA},
+ {"videotoolbox", IMGFMT_VIDEOTOOLBOX},
{"vaapi", IMGFMT_VAAPI},
// names below this are not preferred over the FFmpeg names
// the "none" entry makes mp_imgfmt_to_name prefer FFmpeg names