1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 06:42:03 +00:00

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

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