diff options
author | Rudolf Polzer <divVerent@xonotic.org> | 2014-04-14 20:29:23 +0200 |
---|---|---|
committer | Rudolf Polzer <divVerent@xonotic.org> | 2014-04-14 20:33:35 +0200 |
commit | a7c6c4656de1938729d27fb6f02b7e46a71c35fb (patch) | |
tree | 9531758c097f27a71f98268681de8fbaf3f9ef49 /common/encode_lavc.c | |
parent | 7178257bb69ca7bf597efbf2e2f35dd2628ff199 (diff) | |
download | mpv-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 'common/encode_lavc.c')
-rw-r--r-- | common/encode_lavc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/encode_lavc.c b/common/encode_lavc.c index 39e5607e41..78bbfeb84d 100644 --- a/common/encode_lavc.c +++ b/common/encode_lavc.c @@ -247,7 +247,8 @@ struct encode_lavc_context *encode_lavc_init(struct encode_output_conf *options, void encode_lavc_set_metadata(struct encode_lavc_context *ctx, struct mp_tags *metadata) { - ctx->metadata = metadata; + if (ctx->options->metadata) + ctx->metadata = metadata; } int encode_lavc_start(struct encode_lavc_context *ctx) |