aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2016-02-06 17:43:03 +0100
committerMarton Balint <cus@passwd.hu>2016-03-15 00:55:16 +0100
commitc3c7a879baea59bbc27d750b7e29264f87063598 (patch)
treeb7dc2324298b1e119874206e6c87d4049859fadd
parenta740263d7e7be5bb909ae83a44b21cc8cf8c9274 (diff)
downloadffmpeg-c3c7a879baea59bbc27d750b7e29264f87063598.tar.gz
avutil/dict: add warning to docs about invalidating existing entries when adding a new entry
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--libavutil/dict.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/dict.h b/libavutil/dict.h
index b0aa784630..542d540f9f 100644
--- a/libavutil/dict.h
+++ b/libavutil/dict.h
@@ -116,6 +116,9 @@ int av_dict_count(const AVDictionary *m);
* Note: If AV_DICT_DONT_STRDUP_KEY or AV_DICT_DONT_STRDUP_VAL is set,
* these arguments will be freed on error.
*
+ * Warning: Adding a new entry to a dictionary invalidates all existing entries
+ * previously returned with av_dict_get.
+ *
* @param pm pointer to a pointer to a dictionary struct. If *pm is NULL
* a dictionary struct is allocated and put in *pm.
* @param key entry key to add to *pm (will be av_strduped depending on flags)