summaryrefslogtreecommitdiffstats
path: root/core/cfg-mplayer.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-21 00:45:42 +0200
committerwm4 <wm4@nowhere>2013-05-21 00:45:42 +0200
commit1dff26730aeb915fae99dc7eb38c864af41f70c9 (patch)
tree6e17a0fb3c851a048c4dc27de304a3f26ed838b6 /core/cfg-mplayer.h
parent644131fdb4e152d6984acc42dacd01a99b6fc54d (diff)
downloadmpv-1dff26730aeb915fae99dc7eb38c864af41f70c9.tar.bz2
mpv-1dff26730aeb915fae99dc7eb38c864af41f70c9.tar.xz
dec_video: get rid of two global variables
Diffstat (limited to 'core/cfg-mplayer.h')
-rw-r--r--core/cfg-mplayer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h
index 52c1e4891c..1c078fac25 100644
--- a/core/cfg-mplayer.h
+++ b/core/cfg-mplayer.h
@@ -448,7 +448,7 @@ const m_option_t common_opts[] = {
OPT_STRING("hwdec-codecs", hwdec_codecs, 0),
// postprocessing:
- {"pp", &divx_quality, CONF_TYPE_INT, 0, 0, 0, NULL},
+ OPT_INT("pp", divx_quality, 0),
#ifdef CONFIG_LIBPOSTPROC
{"pphelp", (void *) &pp_help, CONF_TYPE_PRINT, CONF_GLOBAL | CONF_NOCFG, 0, 0, NULL},
#endif
@@ -463,8 +463,8 @@ const m_option_t common_opts[] = {
// use (probably completely broken) decoder direct rendering
OPT_FLAG("dr1", vd_use_dr1, 0),
- {"field-dominance", &field_dominance, CONF_TYPE_CHOICE, 0,
- M_CHOICES(({"auto", -1}, {"top", 0}, {"bottom", 1}))},
+ OPT_CHOICE("field-dominance", field_dominance, 0,
+ ({"auto", -1}, {"top", 0}, {"bottom", 1})),
{"lavdopts", (void *) lavc_decode_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
{"lavfdopts", (void *) lavfdopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},