summaryrefslogtreecommitdiffstats
path: root/options/m_option.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-04-21 20:33:58 +0200
committerJan Ekström <jeebjp@gmail.com>2018-04-29 02:21:32 +0300
commitbfc33da250e4fdb6bb57bdf051ad666570ae985f (patch)
tree32c1a4c08de75212399e6936f4b8808e33d785fa /options/m_option.h
parent05e75e794623754f6e1e77ea20f46629bc71882b (diff)
downloadmpv-bfc33da250e4fdb6bb57bdf051ad666570ae985f.tar.bz2
mpv-bfc33da250e4fdb6bb57bdf051ad666570ae985f.tar.xz
encode: get rid of AVDictionary setter helper
Removes a good hunk of weird code. This loses qscale "emulation", some logging, and the fact that duplicate keys for values starting with +/- were added with AV_DICT_APPEND. I don't assign those any importance, even if they are user-visible changes. The new M_OPT_ flag is just so that nothing weird happens for other key-value options, which do not interpret a "help" key specially.
Diffstat (limited to 'options/m_option.h')
-rw-r--r--options/m_option.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/options/m_option.h b/options/m_option.h
index 2402405cde..60b7700c6d 100644
--- a/options/m_option.h
+++ b/options/m_option.h
@@ -405,6 +405,9 @@ char *format_file_size(int64_t size);
// Do not add as property.
#define M_OPT_NOPROP (1 << 6)
+// Enable special semantics for some options when parsing the string "help".
+#define M_OPT_HAVE_HELP (1 << 7)
+
// The following are also part of the M_OPT_* flags, and are used to update
// certain groups of options.
#define UPDATE_OPT_FIRST (1 << 7)