summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-07 15:19:40 +0200
committerwm4 <wm4@nowhere>2015-07-07 15:19:40 +0200
commit0ebf5979d10388e8ac226d17aca4a4067ddbdbb1 (patch)
tree3aba023dab4ee2c1f34e6334db3e849903c37f24
parent25755f5fe75ad2a4ac9fb4ecf70f7bdf7a58a04c (diff)
downloadmpv-0ebf5979d10388e8ac226d17aca4a4067ddbdbb1.tar.bz2
mpv-0ebf5979d10388e8ac226d17aca4a4067ddbdbb1.tar.xz
command: make deinterlace property use interlaced-only yadif mode
-rw-r--r--DOCS/man/vf.rst3
-rw-r--r--player/command.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/DOCS/man/vf.rst b/DOCS/man/vf.rst
index c9f080e0b4..991dd64eca 100644
--- a/DOCS/man/vf.rst
+++ b/DOCS/man/vf.rst
@@ -529,7 +529,8 @@ Available filters are:
``<interlaced-only>``
:no: Deinterlace all frames (default).
- :yes: Only deinterlace frames marked as interlaced.
+ :yes: Only deinterlace frames marked as interlaced (default if this
+ filter is inserted via ``deinterlace`` property).
This filter, is automatically inserted when using the ``D`` key (or any
other key that toggles the ``deinterlace`` property or when using the
diff --git a/player/command.c b/player/command.c
index ac403fb50d..e961a79866 100644
--- a/player/command.c
+++ b/player/command.c
@@ -2125,7 +2125,7 @@ static int probe_deint_filters(struct MPContext *mpctx)
if (check_output_format(mpctx, IMGFMT_VAAPI) &&
probe_deint_filter(mpctx, "vavpp"))
return 0;
- if (probe_deint_filter(mpctx, "yadif"))
+ if (probe_deint_filter(mpctx, "yadif:interlaced-only=yes"))
return 0;
return -1;
}