summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-01-13 14:44:03 +0100
committerwm4 <wm4@nowhere>2017-01-13 18:43:35 +0100
commit6c28824a926fdd8b420652f849194aad8aee6569 (patch)
tree76e414905e3b7996324b8d8c5c1a58444bc94042
parent812128bab7d14e92d778d97fd34b9f97bd07acc5 (diff)
downloadmpv-6c28824a926fdd8b420652f849194aad8aee6569.tar.bz2
mpv-6c28824a926fdd8b420652f849194aad8aee6569.tar.xz
vo_opengl: hwdec_vaegl: add a lie for compatibility
EGL rendering + new decode API didn't work due to a certain libva bug with sort-of legacy API use hitting again. It will report the wrong vaapi pixel format. It's old code and always nv12 anyway, so stop worrying about it.
-rw-r--r--video/out/opengl/hwdec_vaegl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/hwdec_vaegl.c b/video/out/opengl/hwdec_vaegl.c
index ef68f3aac8..4b164ab407 100644
--- a/video/out/opengl/hwdec_vaegl.c
+++ b/video/out/opengl/hwdec_vaegl.c
@@ -423,7 +423,7 @@ static void determine_working_formats(struct gl_hwdec *hw)
if (s) {
va_surface_init_subformat(s);
if (try_format(hw, s))
- MP_TARRAY_APPEND(p, formats, num_formats, s->params.hw_subfmt);
+ MP_TARRAY_APPEND(p, formats, num_formats, IMGFMT_NV12);
}
talloc_free(s);
talloc_free(alloc);