mirror of https://github.com/mpv-player/mpv
vo_vdpau: set hwdec image format
This commit is contained in:
parent
af9eac654e
commit
30bf811a8f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue