diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-12-15 23:12:38 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-12-16 18:30:04 +0100 |
commit | e3eb0988c6622faf3f012a913fb9f2189fea00ed (patch) | |
tree | 0da55e4c666c77e2d7df50da7b56b987480123a4 /libavutil/dict.h | |
parent | 023693d786c2e16422fb4809c672e8f131027fa5 (diff) | |
download | ffmpeg-e3eb0988c6622faf3f012a913fb9f2189fea00ed.tar.gz |
lavu/dict.h: extend/clarify av_dict_get() doxy
Diffstat (limited to 'libavutil/dict.h')
-rw-r--r-- | libavutil/dict.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavutil/dict.h b/libavutil/dict.h index 1dfc5a6443..63c830ae14 100644 --- a/libavutil/dict.h +++ b/libavutil/dict.h @@ -85,14 +85,17 @@ typedef struct AVDictionary AVDictionary; /** * Get a dictionary entry with matching key. * + * The returned entry key or value must not be changed, or it will + * cause undefined behavior. + * * To iterate through all the dictionary entries, you can set the matching key * to the null string "" and set the AV_DICT_IGNORE_SUFFIX flag. * * @param prev Set to the previous matching element to find the next. * If set to NULL the first matching element is returned. * @param key matching key - * @param flags Allows case as well as suffix-insensitive comparisons. - * @return Found entry or NULL, changing key or value leads to undefined behavior. + * @param flags a collection of AV_DICT_* flags controlling how the entry is retrieved + * @return found entry or NULL in case no matching entry was found in the dictionary */ AVDictionaryEntry * av_dict_get(AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags); |