summaryrefslogtreecommitdiffstats
path: root/mpvcore/m_option.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-08-21 18:24:56 +0200
committerwm4 <wm4@nowhere>2013-08-21 18:32:42 +0200
commitc8a7140c739038d33e030aa0b668e101e5228491 (patch)
treef052038fd92ea9d7b0af555e189aef2b383372a9 /mpvcore/m_option.h
parent92658864ae374e6d96cd000e4b04c7c78a2e6109 (diff)
downloadmpv-c8a7140c739038d33e030aa0b668e101e5228491.tar.bz2
mpv-c8a7140c739038d33e030aa0b668e101e5228491.tar.xz
mplayer: start track IDs from 1 rather than 0
Completely pointless, but makes ChrisK happy for some reason. Track ID 0 is now rejected by the option parser itself.
Diffstat (limited to 'mpvcore/m_option.h')
-rw-r--r--mpvcore/m_option.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpvcore/m_option.h b/mpvcore/m_option.h
index 03daa87cd4..96219b317a 100644
--- a/mpvcore/m_option.h
+++ b/mpvcore/m_option.h
@@ -624,7 +624,7 @@ int m_option_required_params(const m_option_t *opt);
OPT_GENERAL(struct m_geometry, __VA_ARGS__, .type = &m_option_type_size_box)
#define OPT_TRACKCHOICE(name, var) \
- OPT_CHOICE_OR_INT(name, var, 0, 0, 8190, ({"no", -2}, {"auto", -1}))
+ OPT_CHOICE_OR_INT(name, var, 0, 1, 8190, ({"no", -2}, {"auto", -1}))
#define OPT_STRING_VALIDATE_(optname, varname, flags, validate_fn, ...) \
OPT_GENERAL(char*, optname, varname, flags, __VA_ARGS__, \