mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 16:33:02 +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:
parent
812128bab7
commit
6c28824a92
@ -423,7 +423,7 @@ static void determine_working_formats(struct gl_hwdec *hw)
|
|||||||
if (s) {
|
if (s) {
|
||||||
va_surface_init_subformat(s);
|
va_surface_init_subformat(s);
|
||||||
if (try_format(hw, 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(s);
|
||||||
talloc_free(alloc);
|
talloc_free(alloc);
|
||||||
|
Loading…
Reference in New Issue
Block a user