aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukasz Marek <lukasz.m.luki2@gmail.com>2015-04-02 00:36:02 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-02 00:48:19 +0200
commit08d0dbf2aecbbe387227dfae4314e0a989ca4556 (patch)
tree02aa607a57d43e17811ba9d23305133107160e9a
parentf669d8c1b79013d9f2dedb67cac22334dd78e38c (diff)
downloadffmpeg-08d0dbf2aecbbe387227dfae4314e0a989ca4556.tar.gz
lavu/dict: don't accept AV_DICT_DONT_STRDUP_VAL for av_dict_set_int
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/dict.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/dict.c b/libavutil/dict.c
index 0d54c7970a..85613da19e 100644
--- a/libavutil/dict.c
+++ b/libavutil/dict.c
@@ -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);
}