diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-26 13:34:30 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-26 13:34:30 +0100 |
commit | e7e14bc69a606a6bec82efef729263cd38f122d4 (patch) | |
tree | b88a8db08cebe2a851d7f4179696cd89af7e7a45 /libavutil/dict.h | |
parent | 25c75525bf1da38179ec67924f0be7a2bd8faa0d (diff) | |
parent | 38c1466ca41c73c7ce347da702362cb69c151716 (diff) | |
download | ffmpeg-e7e14bc69a606a6bec82efef729263cd38f122d4.tar.gz |
Merge commit '38c1466ca41c73c7ce347da702362cb69c151716'
* commit '38c1466ca41c73c7ce347da702362cb69c151716':
dict: add av_dict_parse_string()
doc: support multitable in texi2pod
Conflicts:
doc/APIchanges
libavutil/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/dict.h')
-rw-r--r-- | libavutil/dict.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libavutil/dict.h b/libavutil/dict.h index fde3650184..38f03a407f 100644 --- a/libavutil/dict.h +++ b/libavutil/dict.h @@ -113,6 +113,23 @@ int av_dict_count(const AVDictionary *m); int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags); /** + * Parse the key/value pairs list and add to a dictionary. + * + * @param key_val_sep a 0-terminated list of characters used to separate + * key from value + * @param pairs_sep a 0-terminated list of characters used to separate + * two pairs from each other + * @param flags flags to use when adding to dictionary. + * AV_DICT_DONT_STRDUP_KEY and AV_DICT_DONT_STRDUP_VAL + * are ignored since the key/value tokens will always + * be duplicated. + * @return 0 on success, negative AVERROR code on failure + */ +int av_dict_parse_string(AVDictionary **pm, const char *str, + const char *key_val_sep, const char *pairs_sep, + int flags); + +/** * Copy entries from one AVDictionary struct into another. * @param dst pointer to a pointer to a AVDictionary struct. If *dst is NULL, * this function will allocate a struct for you and put it in *dst |