1
0
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:
wm4 2016-06-20 19:10:58 +02:00
parent 761eeacf54
commit 9bac0ea421

View File

@ -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;
}