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). --- video/filter/vf_yadif.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'video/filter') 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, }; -- cgit v1.2.3