aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/dict.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-09 21:07:58 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-13 22:32:20 +0200
commit8407cbbfc942343d562d5960f3b85938db49fac7 (patch)
treee384cabfec2ae91f5929895f434489e5e437137b /libavutil/dict.c
parent296cd9c432775bbf57867fd76e8d2f505a512569 (diff)
downloadffmpeg-8407cbbfc942343d562d5960f3b85938db49fac7.tar.gz
Fix "passing argument 1 of av_free discards const qualifier from pointer target type"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/dict.c')
-rw-r--r--libavutil/dict.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavutil/dict.c b/libavutil/dict.c
index bdb56908d3..475e906350 100644
--- a/libavutil/dict.c
+++ b/libavutil/dict.c
@@ -77,8 +77,8 @@ int av_dict_set(AVDictionary **pm, const char *key, const char *value,
if (tag) {
if (flags & AV_DICT_DONT_OVERWRITE) {
- if (flags & AV_DICT_DONT_STRDUP_KEY) av_free(key);
- if (flags & AV_DICT_DONT_STRDUP_VAL) av_free(value);
+ if (flags & AV_DICT_DONT_STRDUP_KEY) av_free((void*)key);
+ if (flags & AV_DICT_DONT_STRDUP_VAL) av_free((void*)value);
return 0;
}
if (flags & AV_DICT_APPEND)
@@ -126,8 +126,8 @@ err_out:
av_free(m->elems);
av_freep(pm);
}
- if (flags & AV_DICT_DONT_STRDUP_KEY) av_free(key);
- if (flags & AV_DICT_DONT_STRDUP_VAL) av_free(value);
+ if (flags & AV_DICT_DONT_STRDUP_KEY) av_free((void*)key);
+ if (flags & AV_DICT_DONT_STRDUP_VAL) av_free((void*)value);
return AVERROR(ENOMEM);
}