mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 14:29:25 +08:00
vo_vaapi: restore hardware video decoding
Commit e50db42 changed how hwdec interop works. Adjust vo_vaapi accordingly by setting the appropriate image format.
This commit is contained in:
@@ -792,6 +792,7 @@ static int preinit(struct vo *vo)
|
||||
if (!p->image_formats)
|
||||
goto fail;
|
||||
|
||||
p->mpvaapi->hwctx.hw_imgfmt = IMGFMT_VAAPI;
|
||||
p->pool = mp_image_pool_new(p);
|
||||
va_pool_set_allocator(p->pool, p->mpvaapi, VA_RT_FORMAT_YUV420);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user