summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2019-12-15 12:22:46 -0800
committerPhilip Langdale <github.philipl@overt.org>2022-03-02 16:21:04 -0800
commit7d08201a8f82c2dfdcbb794431d48867c46f03c2 (patch)
treed81c5cf8714d56a49ddb6b43c2bfa30418ab7ea1
parent1a3e85ec3304c849fdc50a8cfbbfaf9a66ebf590 (diff)
downloadmpv-7d08201a8f82c2dfdcbb794431d48867c46f03c2.tar.bz2
mpv-7d08201a8f82c2dfdcbb794431d48867c46f03c2.tar.xz
filters: Re-add vavpp deinterlacing auto-filter
A few years ago, in 25e70f4743c44db59fe8fc902c93a966d95ba8c3, we disabled the vavpp deinterlacing auto-filter on the basis that it caused crashes on _some_ hardware with _some_ driver version(s). But since then, the situation has improved. There is still a limitation where you can't turn deinterlacing on on the fly with AMD, but it doesn't crash anymore (That is #7388). So, given that AMD users have to set up the deinterlacing filter manually either way, let's re-add the auto-filter for Intel users.
-rw-r--r--filters/f_auto_filters.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/filters/f_auto_filters.c b/filters/f_auto_filters.c
index 5dd3a4adff..cbd2769490 100644
--- a/filters/f_auto_filters.c
+++ b/filters/f_auto_filters.c
@@ -82,6 +82,11 @@ static void deint_process(struct mp_filter *f)
char *args[] = {"mode", "send_field", NULL};
p->sub.filter =
mp_create_user_filter(f, MP_OUTPUT_CHAIN_VIDEO, "yadif_cuda", args);
+ } else if (img->imgfmt == IMGFMT_VAAPI) {
+ char *args[] = {"deint", "motion-adaptive",
+ "interlaced-only", "yes", NULL};
+ p->sub.filter =
+ mp_create_user_filter(f, MP_OUTPUT_CHAIN_VIDEO, "vavpp", args);
} else {
has_filter = false;
}