vo_vdpau: set hwdec image format

This commit is contained in:
billdoor1 2023-08-02 20:26:00 +02:00 committed by Dudemanguy
parent af9eac654e
commit 30bf811a8f
1 changed files with 1 additions and 0 deletions

View File

@ -1028,6 +1028,7 @@ static int preinit(struct vo *vo)
vo_x11_uninit(vo);
return -1;
}
vc->mpvdp->hwctx.hw_imgfmt = IMGFMT_VDPAU;
vo->hwdec_devs = hwdec_devices_create();
hwdec_devices_add(vo->hwdec_devs, &vc->mpvdp->hwctx);