summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-06-20 19:10:58 +0200
committerwm4 <wm4@nowhere>2016-06-20 19:10:58 +0200
commit9bac0ea42149ddc26ecf08a32f66334bc99340b5 (patch)
treee4f43744441fce394739273c0a121414c0f9bbfd
parent761eeacf5407cab07a48e63d3dc215facf4d9650 (diff)
downloadmpv-9bac0ea42149ddc26ecf08a32f66334bc99340b5.tar.bz2
mpv-9bac0ea42149ddc26ecf08a32f66334bc99340b5.tar.xz
vf_vdpaurb: fix operation
The hw_subfmt field remained set, while it has to be unset for non-hwdec formats.
-rw-r--r--video/filter/vf_vdpaurb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/filter/vf_vdpaurb.c b/video/filter/vf_vdpaurb.c
index 92dfa52486..35c0f9c04d 100644
--- a/video/filter/vf_vdpaurb.c
+++ b/video/filter/vf_vdpaurb.c
@@ -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;
}