diff options
Diffstat (limited to 'libavformat/metadata.c')
-rw-r--r-- | libavformat/metadata.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/metadata.c b/libavformat/metadata.c index 9ff7c48a8a..0f2b5297b8 100644 --- a/libavformat/metadata.c +++ b/libavformat/metadata.c @@ -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]; |