summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorRudolf Polzer <divVerent@xonotic.org>2014-04-14 20:29:23 +0200
committerRudolf Polzer <divVerent@xonotic.org>2014-04-14 20:33:35 +0200
commita7c6c4656de1938729d27fb6f02b7e46a71c35fb (patch)
tree9531758c097f27a71f98268681de8fbaf3f9ef49 /options
parent7178257bb69ca7bf597efbf2e2f35dd2628ff199 (diff)
downloadmpv-a7c6c4656de1938729d27fb6f02b7e46a71c35fb.tar.bz2
mpv-a7c6c4656de1938729d27fb6f02b7e46a71c35fb.tar.xz
New option --no-ometadata to opt out of including metadata when encoding.
This re-allows the previous behaviour of being able to reencode with metadata removed, which is useful when encoding "inconsistently" tagged data for a device/player that shows file names when tags are not present.
Diffstat (limited to 'options')
-rw-r--r--options/options.c4
-rw-r--r--options/options.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 42ca0846d9..82b81b049d 100644
--- a/options/options.c
+++ b/options/options.c
@@ -635,6 +635,7 @@ const m_option_t mp_opts[] = {
OPT_FLAG("oneverdrop", encode_output.neverdrop, CONF_GLOBAL),
OPT_FLAG("ovfirst", encode_output.video_first, CONF_GLOBAL),
OPT_FLAG("oafirst", encode_output.audio_first, CONF_GLOBAL),
+ OPT_FLAG("ometadata", encode_output.metadata, CONF_GLOBAL),
#endif
{NULL, NULL, 0, 0, 0, 0, NULL}
@@ -766,6 +767,9 @@ const struct MPOpts mp_default_opts = {
#endif
.default_bindings = 1,
},
+ .encode_output = {
+ .metadata = 1,
+ },
};
#endif /* MPLAYER_CFG_MPLAYER_H */
diff --git a/options/options.h b/options/options.h
index 3b9ddeedc7..3572789c5a 100644
--- a/options/options.h
+++ b/options/options.h
@@ -302,6 +302,7 @@ typedef struct MPOpts {
int neverdrop;
int video_first;
int audio_first;
+ int metadata;
} encode_output;
} MPOpts;