Commit 08d0dbf2 authored by Lukasz Marek's avatar Lukasz Marek Committed by Michael Niedermayer

lavu/dict: don't accept AV_DICT_DONT_STRDUP_VAL for av_dict_set_int

Signed-off-by: 's avatarLukasz Marek <lukasz.m.luki2@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f669d8c1
...@@ -141,6 +141,7 @@ int av_dict_set_int(AVDictionary **pm, const char *key, int64_t value, ...@@ -141,6 +141,7 @@ int av_dict_set_int(AVDictionary **pm, const char *key, int64_t value,
{ {
char valuestr[22]; char valuestr[22];
snprintf(valuestr, sizeof(valuestr), "%"PRId64, value); snprintf(valuestr, sizeof(valuestr), "%"PRId64, value);
flags &= ~AV_DICT_DONT_STRDUP_VAL;
return av_dict_set(pm, key, valuestr, flags); return av_dict_set(pm, key, valuestr, flags);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment