diff options
author | Anton Khirnov <wyskas@gmail.com> | 2010-04-05 19:53:25 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2010-04-05 19:53:25 +0000 |
commit | 1a6498d78c86b796295877f44ea82ebe8b5d5328 (patch) | |
tree | fbead4844c55abd95675afd9c82b367e75633ee0 /ffmpeg.c | |
parent | 56a8242fdd46a5dc6e577ec730b549e83facf6a6 (diff) | |
download | ffmpeg-1a6498d78c86b796295877f44ea82ebe8b5d5328.tar.gz |
Don't overwrite user-supplied metadata with metadata mapped from an input file.
Patch by Anton Khirnov <wyskas gmail com>.
Originally committed as revision 22808 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2193,7 +2193,7 @@ static int av_transcode(AVFormatContext **output_files, mtag=NULL; 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, in_file->iformat->metadata_conv); } |