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:
Gusar321 2023-07-21 14:13:39 +02:00 committed by sfan5
parent 800d9eaa42
commit bddf0efade
1 changed files with 1 additions and 0 deletions

View File

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