aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-17 22:56:13 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-17 22:56:13 +0200
commit8aed90958d8bbf4a0652fdc56b9655ad9962fa50 (patch)
tree89ffcae0996f33bb77b302b74c57713e8260146a /libavutil
parent68eb35b886af4134bf746312b53d0d83be414286 (diff)
downloadffmpeg-8aed90958d8bbf4a0652fdc56b9655ad9962fa50.tar.gz
dict: fix assignment discards qualifiers from pointer target type warnings.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/dict.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/dict.c b/libavutil/dict.c
index 74301fbf11..a0e7fb4c0e 100644
--- a/libavutil/dict.c
+++ b/libavutil/dict.c
@@ -75,11 +75,11 @@ int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags
}
if (value) {
if (flags & AV_DICT_DONT_STRDUP_KEY) {
- m->elems[m->count].key = key;
+ m->elems[m->count].key = (char*)(intptr_t)key;
} else
m->elems[m->count].key = av_strdup(key );
if (flags & AV_DICT_DONT_STRDUP_VAL) {
- m->elems[m->count].value = value;
+ m->elems[m->count].value = (char*)(intptr_t)value;
} else if (oldval && flags & AV_DICT_APPEND) {
int len = strlen(oldval) + strlen(value) + 1;
if (!(oldval = av_realloc(oldval, len)))