summaryrefslogtreecommitdiffstats
path: root/options/options.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2024-01-21 20:37:47 -0600
committerDudemanguy <random342@airmail.cc>2024-02-07 14:50:09 +0000
commit8dbbc2ad82d6ebfa986db4726e2e5006b7cb0a9d (patch)
treec9dd1bfe83ed3141275e7bf560214200e0322305 /options/options.h
parent9ce2bafbe9a49afe65eb86b46625f12dcb1b3110 (diff)
downloadmpv-8dbbc2ad82d6ebfa986db4726e2e5006b7cb0a9d.tar.bz2
mpv-8dbbc2ad82d6ebfa986db4726e2e5006b7cb0a9d.tar.xz
player: add an auto option to deinterlace
Deinterlacing required that the user set it on/off themselves, but we actually have handy flags for detecting if a frame is interlaced. So it's pretty simple to make an auto option using that. Unfortunately, life is not quite that simple and there are known cases of false positives from the ffmpeg flags so we can't make auto the default value. However, it still may have some utility for some people, and the detection could potentially be improved upon later. Closes #10358.
Diffstat (limited to 'options/options.h')
-rw-r--r--options/options.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/options/options.h b/options/options.h
index 6caabbfe75..e05b723a01 100644
--- a/options/options.h
+++ b/options/options.h
@@ -397,7 +397,7 @@ struct dvd_opts {
};
struct filter_opts {
- bool deinterlace;
+ int deinterlace;
};
extern const struct m_sub_options vo_sub_opts;