[FFmpeg-devel] [PATCH 3/5] lavu/dict: remove weird intptr_t cast
wm4
nfxjfg at googlemail.com
Fri Dec 12 18:15:41 CET 2014
I can't come up with a reason why this would be needed.
---
libavutil/dict.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavutil/dict.c b/libavutil/dict.c
index c4b97dc..e33e6a1 100644
--- a/libavutil/dict.c
+++ b/libavutil/dict.c
@@ -100,14 +100,14 @@ int av_dict_set(AVDictionary **pm, const char *key, const char *value,
}
if (value) {
if (flags & AV_DICT_DONT_STRDUP_KEY)
- m->elems[m->count].key = (char*)(intptr_t)key;
+ m->elems[m->count].key = (char*)key;
else
m->elems[m->count].key = av_strdup(key);
if (!m->elems[m->count].key)
goto err_out;
tmp = m->elems[m->count].key;
if (flags & AV_DICT_DONT_STRDUP_VAL) {
- m->elems[m->count].value = (char*)(intptr_t)value;
+ m->elems[m->count].value = (char*)value;
} else if (oldval && flags & AV_DICT_APPEND) {
int len = strlen(oldval) + strlen(value) + 1;
char *newval = av_mallocz(len);
--
2.1.1
More information about the ffmpeg-devel
mailing list