mirror of https://github.com/mpv-player/mpv
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:
parent
800d9eaa42
commit
bddf0efade
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue