From 7fa06e46c4f63c58dcb2590c28631edd6756c358 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 21 Dec 2015 22:04:53 +0100 Subject: vf_yadif: change defaults This is for the sake of command.c and the "deinterlace" option/property. Instead of forcing certain "better" defaults when inserting yadif, change the actual "yadif" defaults. I pondered not changing vf_yadif, and instead adding a trivial "yadif- auto" wrapper filter, which would merely have different defaults. But thinking about it, it doesn't make any sense for "deinterlace" to have different defaults from vf_yadif, with vf_yadif having the "worse" defaults. If someone wants the old behavior, the old behavior can be forced in a backward and forward compatible way by setting the suboptions. Fixes #2539 (kind of). --- player/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player') 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; } -- cgit v1.2.3