aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/filter/vf_d3d11vpp.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2016-07-15 19:52:32 +0200
committerGravatar wm4 <wm4@nowhere>2016-07-15 20:21:03 +0200
commitc5361d12d8886b292325cfb6f1ae075913bc9a96 (patch)
treee0aab2bd8add38b483a3e418001de5a39d190a7d /video/filter/vf_d3d11vpp.c
parent358932a10939ecdb8ffc0bea15b06cee17a9ef73 (diff)
vf_d3d11vpp: fix interlaced-only=no mode
"Real" frame flag vs. what we pretend it to be. It always used the real flag, and thus never deinterlaced unflagged frames, even if the suboption was set to "no".
Diffstat (limited to 'video/filter/vf_d3d11vpp.c')
-rw-r--r--video/filter/vf_d3d11vpp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/filter/vf_d3d11vpp.c b/video/filter/vf_d3d11vpp.c
index a913df6720..7a52565782 100644
--- a/video/filter/vf_d3d11vpp.c
+++ b/video/filter/vf_d3d11vpp.c
@@ -269,7 +269,7 @@ static int render(struct vf_instance *vf)
mp_image_copy_attributes(out, in);
D3D11_VIDEO_FRAME_FORMAT d3d_frame_format;
- if (!mp_refqueue_is_interlaced(p->queue)) {
+ if (!mp_refqueue_should_deint(p->queue)) {
d3d_frame_format = D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE;
} else if (mp_refqueue_top_field_first(p->queue)) {
d3d_frame_format = D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST;
@@ -289,7 +289,7 @@ static int render(struct vf_instance *vf)
goto cleanup;
}
- if (!mp_refqueue_is_interlaced(p->queue)) {
+ if (!mp_refqueue_should_deint(p->queue)) {
d3d_frame_format = D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE;
} else if (mp_refqueue_is_top_field(p->queue)) {
d3d_frame_format = D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST;