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.
This commit is contained in:
Rudolf Polzer
2014-04-14 20:29:23 +02:00
parent 7178257bb6
commit a7c6c4656d
4 changed files with 11 additions and 1 deletions

View File

@@ -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)