summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-17 22:45:05 +0200
committerwm4 <wm4@nowhere>2019-10-17 22:45:05 +0200
commitc75e0320f60f93f0db40c949320fd9cee27cb52e (patch)
tree64c8d918dc28e11ff0de8c766807dd559739bfdf
parent77fd4dd681be8eb95d8e7b79b66242822f95e4da (diff)
downloadmpv-c75e0320f60f93f0db40c949320fd9cee27cb52e.tar.bz2
mpv-c75e0320f60f93f0db40c949320fd9cee27cb52e.tar.xz
vo_gpu: hwdec_d3d11egl: add missing P010 format to supported list
This was obviously missing from the recent commit, which probably broke 10 bit decoding. The original commit didn't test this for lack of working hardware; this commit isn't tested either. Fixes: a1c7d613935424b69b3
-rw-r--r--video/out/opengl/hwdec_d3d11egl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/hwdec_d3d11egl.c b/video/out/opengl/hwdec_d3d11egl.c
index cb8844bd0c..762050359b 100644
--- a/video/out/opengl/hwdec_d3d11egl.c
+++ b/video/out/opengl/hwdec_d3d11egl.c
@@ -178,7 +178,7 @@ static int init(struct ra_hwdec *hw)
ID3D10Multithread_SetMultithreadProtected(multithread, TRUE);
ID3D10Multithread_Release(multithread);
- static const int subfmts[] = {IMGFMT_NV12, 0};
+ static const int subfmts[] = {IMGFMT_NV12, IMGFMT_P010, 0};
p->hwctx = (struct mp_hwdec_ctx){
.driver_name = hw->driver->name,
.av_device_ref = d3d11_wrap_device_ref(p->d3d11_device),