]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/metadata.c
Remove unnecessary header inclusion directives.
[ffmpeg] / libavformat / metadata.c
index 9ff7c48a8a9d9454ec7f47b9e6087d5bf7b867d0..0f2b5297b88613dc434f0d3ae423ad8d96791796 100644 (file)
@@ -55,6 +55,8 @@ int av_metadata_set2(AVMetadata **pm, const char *key, const char *value, int fl
         m=*pm= av_mallocz(sizeof(*m));
 
     if(tag){
+        if (flags & AV_METADATA_DONT_OVERWRITE)
+            return 0;
         av_free(tag->value);
         av_free(tag->key);
         *tag= m->elems[--m->count];