summaryrefslogtreecommitdiffstats
path: root/video/fmt-conversion.c
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2016-11-19 13:57:23 -0800
committerwm4 <wm4@nowhere>2016-11-22 20:19:58 +0100
commit585c5c34f1195007beb012668aa9a22cb47b1f37 (patch)
tree216b2254833461835c15638beacda26e9e3edb4a /video/fmt-conversion.c
parent5087816a7431caf27a5a8a9e00d0004d8322cdaa (diff)
downloadmpv-585c5c34f1195007beb012668aa9a22cb47b1f37.tar.bz2
mpv-585c5c34f1195007beb012668aa9a22cb47b1f37.tar.xz
vo_opengl: hwdec_cuda: Support P016 output surfaces
The latest 375.xx nvidia drivers add support for P016 output surfaces. In combination with an ffmpeg change to return those surfaces, we can display them. The bulk of the work is related to knowing which format you're dealing with at the right time. Once you know, it's straight forward.
Diffstat (limited to 'video/fmt-conversion.c')
-rw-r--r--video/fmt-conversion.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/fmt-conversion.c b/video/fmt-conversion.c
index 32330ddeb1..8b991c5d19 100644
--- a/video/fmt-conversion.c
+++ b/video/fmt-conversion.c
@@ -112,6 +112,9 @@ static const struct {
#ifdef AV_PIX_FMT_P010
{IMGFMT_P010, AV_PIX_FMT_P010},
#endif
+#ifdef AV_PIX_FMT_P016
+ {IMGFMT_P016, AV_PIX_FMT_P016},
+#endif
{0, AV_PIX_FMT_NONE}
};