From 6c28824a926fdd8b420652f849194aad8aee6569 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 13 Jan 2017 14:44:03 +0100 Subject: 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. --- video/out/opengl/hwdec_vaegl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3