mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 15:11:09 +08:00
vo_vdpau: set hwdec image format
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user