mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 07:12:39 +00:00
vf_vdpaurb: fix operation
The hw_subfmt field remained set, while it has to be unset for non-hwdec formats.
This commit is contained in:
parent
761eeacf54
commit
9bac0ea421
@ -83,6 +83,7 @@ static int reconfig(struct vf_instance *vf, struct mp_image_params *in,
|
||||
*out = *in;
|
||||
if (in->imgfmt == IMGFMT_VDPAU) {
|
||||
out->imgfmt = IMGFMT_NV12;
|
||||
out->hw_subfmt = 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user