[FFmpeg-devel] [PATCH 2/3] ffmpeg.c: don't overwrite user-supplied metadata with metadata mapped from an input file.

Anton Khirnov wyskas
Wed Mar 31 19:10:06 CEST 2010


---
 ffmpeg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index c053a23..f3b775b 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2197,7 +2197,7 @@ static int av_encode(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);
     }
-- 
1.7.0




More information about the ffmpeg-devel mailing list