summaryrefslogtreecommitdiff
path: root/libavutil/dict.h
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-06-04 04:58:33 -0700
committerDiego Biurrun <diego@biurrun.de>2014-06-05 09:16:15 -0700
commitd816e125fe1fa5c909b706d47904a4d6c1799996 (patch)
tree1070110de285cac0e893f9805db697c9bff8dff5 /libavutil/dict.h
parent39ec5e1cf8444f827c42effb76e5694e091bbff3 (diff)
dict: const correctness for av_dict_get() and av_dict_copy()
Diffstat (limited to 'libavutil/dict.h')
-rw-r--r--libavutil/dict.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/dict.h b/libavutil/dict.h
index e0a91ae836..e4aee27ca3 100644
--- a/libavutil/dict.h
+++ b/libavutil/dict.h
@@ -83,8 +83,8 @@ typedef struct AVDictionary AVDictionary;
* @param flags Allows case as well as suffix-insensitive comparisons.
* @return Found entry or NULL, changing key or value leads to undefined behavior.
*/
-AVDictionaryEntry *
-av_dict_get(AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags);
+AVDictionaryEntry *av_dict_get(const AVDictionary *m, const char *key,
+ const AVDictionaryEntry *prev, int flags);
/**
* Get number of entries in dictionary.
@@ -131,7 +131,7 @@ int av_dict_parse_string(AVDictionary **pm, const char *str,
* @param flags flags to use when setting entries in *dst
* @note metadata is read using the AV_DICT_IGNORE_SUFFIX flag
*/
-void av_dict_copy(AVDictionary **dst, AVDictionary *src, int flags);
+void av_dict_copy(AVDictionary **dst, const AVDictionary *src, int flags);
/**
* Free all the memory allocated for an AVDictionary struct