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>
This commit is contained in:
Lukasz Marek 2015-04-02 00:36:02 +02:00 committed by Michael Niedermayer
parent f669d8c1b7
commit 08d0dbf2ae

View 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);
}