summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DOCS/interface-changes.rst2
-rw-r--r--DOCS/man/vf.rst9
-rw-r--r--player/command.c2
-rw-r--r--video/filter/vf_yadif.c4
4 files changed, 11 insertions, 6 deletions
diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst
index a7132797f3..11abdc2475 100644
--- a/DOCS/interface-changes.rst
+++ b/DOCS/interface-changes.rst
@@ -19,6 +19,8 @@ Interface changes
::
+ --- mpv 0.15.0 ---
+ - change "yadif" video filter defaults
--- mpv 0.14.0 ---
- vo_opengl interpolation now requires --video-sync=display-... to be set
- change some vo_opengl defaults (including changing tscale)
diff --git a/DOCS/man/vf.rst b/DOCS/man/vf.rst
index b8d10f4683..ff3f539416 100644
--- a/DOCS/man/vf.rst
+++ b/DOCS/man/vf.rst
@@ -454,16 +454,15 @@ Available filters are:
``<mode>``
:frame: Output 1 frame for each frame.
- :field: Output 1 frame for each field.
+ :field: Output 1 frame for each field (default).
:frame-nospatial: Like ``frame`` but skips spatial interlacing check.
:field-nospatial: Like ``field`` but skips spatial interlacing check.
``<interlaced-only>``
- :no: Deinterlace all frames (default).
- :yes: Only deinterlace frames marked as interlaced (default if this
- filter is inserted via ``deinterlace`` property).
+ :no: Deinterlace all frames.
+ :yes: Only deinterlace frames marked as interlaced (default).
- This filter, is automatically inserted when using the ``d`` key (or any
+ This filter is automatically inserted when using the ``d`` key (or any
other key that toggles the ``deinterlace`` property or when using the
``--deinterlace`` switch), assuming the video output does not have native
deinterlacing support.
diff --git a/player/command.c b/player/command.c
index ecae0df1a9..eec4f45dc0 100644
--- a/player/command.c
+++ b/player/command.c
@@ -2207,7 +2207,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:mode=field:interlaced-only=yes"))
+ if (probe_deint_filter(mpctx, "yadif"))
return 0;
return -1;
}
diff --git a/video/filter/vf_yadif.c b/video/filter/vf_yadif.c
index 7fec046235..d1e1ffbac0 100644
--- a/video/filter/vf_yadif.c
+++ b/video/filter/vf_yadif.c
@@ -78,5 +78,9 @@ const vf_info_t vf_info_yadif = {
.name = "yadif",
.open = vf_open,
.priv_size = sizeof(struct vf_priv_s),
+ .priv_defaults = &(const struct vf_priv_s){
+ .mode = 1,
+ .interlaced_only = 1,
+ },
.options = vf_opts_fields,
};