[FFmpeg-cvslog] lavu/dict: don't accept AV_DICT_DONT_STRDUP_VAL for av_dict_set_int
Lukasz Marek
git at videolan.org
Thu Apr 2 00:57:34 CEST 2015
ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki2 at gmail.com> | Thu Apr 2 00:36:02 2015 +0200| [08d0dbf2aecbbe387227dfae4314e0a989ca4556] | committer: Michael Niedermayer
lavu/dict: don't accept AV_DICT_DONT_STRDUP_VAL for av_dict_set_int
Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=08d0dbf2aecbbe387227dfae4314e0a989ca4556
---
libavutil/dict.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/dict.c b/libavutil/dict.c
index 0d54c79..85613da 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);
}
More information about the ffmpeg-cvslog
mailing list