1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 00:02:13 +00:00

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.
This commit is contained in:
wm4 2017-01-13 14:44:03 +01:00
parent 812128bab7
commit 6c28824a92

View File

@ -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);