lavu/dict: don't accept AV_DICT_DONT_STRDUP_VAL for av_dict_set_int
authorLukasz Marek <lukasz.m.luki2@gmail.com>
Wed, 1 Apr 2015 22:36:02 +0000 (00:36 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 1 Apr 2015 22:48:19 +0000 (00:48 +0200)
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/dict.c

index 0d54c79..85613da 100644 (file)
@@ -141,6 +141,7 @@ int av_dict_set_int(AVDictionary **pm, const char *key, int64_t value,
 {
     char valuestr[22];
     snprintf(valuestr, sizeof(valuestr), "%"PRId64, value);
+    flags &= ~AV_DICT_DONT_STRDUP_VAL;
     return av_dict_set(pm, key, valuestr, flags);
 }