Commit 1a1073ff authored by rbultje's avatar rbultje

Don't overwrite user-supplied metadata with metadata mapped from an input file.

Patch by Anton Khirnov <wyskas gmail com>.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22808 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5ab7d2b5
...@@ -2193,7 +2193,7 @@ static int av_transcode(AVFormatContext **output_files, ...@@ -2193,7 +2193,7 @@ static int av_transcode(AVFormatContext **output_files,
mtag=NULL; mtag=NULL;
while((mtag=av_metadata_get(in_file->metadata, "", mtag, AV_METADATA_IGNORE_SUFFIX))) while((mtag=av_metadata_get(in_file->metadata, "", mtag, AV_METADATA_IGNORE_SUFFIX)))
av_metadata_set(&out_file->metadata, mtag->key, mtag->value); av_metadata_set2(&out_file->metadata, mtag->key, mtag->value, AV_METADATA_DONT_OVERWRITE);
av_metadata_conv(out_file, out_file->oformat->metadata_conv, av_metadata_conv(out_file, out_file->oformat->metadata_conv,
in_file->iformat->metadata_conv); in_file->iformat->metadata_conv);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment