diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-11-25 20:25:10 +0100 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-11-29 00:58:42 +0100 |
commit | 0cb994dfe32efa97024962f8e46c0738722ba159 (patch) | |
tree | bb589eab98ab1606df43bab8bb471703fa050a4a /libavutil/opt.h | |
parent | dd5d61795690e339ae271692e7ab9df66b5eb153 (diff) | |
download | ffmpeg-0cb994dfe32efa97024962f8e46c0738722ba159.tar.gz |
lavu/opt: add escaping to av_opt_serialize
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Diffstat (limited to 'libavutil/opt.h')
-rw-r--r-- | libavutil/opt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/opt.h b/libavutil/opt.h index d611c9b3ce..5fc8a9b58a 100644 --- a/libavutil/opt.h +++ b/libavutil/opt.h @@ -879,6 +879,8 @@ int av_opt_is_set_to_default_by_name(void *obj, const char *name, int search_fla * * Create a string containing object's serialized options. * Such string may be passed back to av_opt_set_from_string() in order to restore option values. + * A key/value or pairs separator occurring in the serialized value or + * name string are escaped through the av_escape() function. * * @param[in] obj AVClass object to serialize * @param[in] opt_flags serialize options with all the specified flags set (AV_OPT_FLAG) @@ -888,6 +890,7 @@ int av_opt_is_set_to_default_by_name(void *obj, const char *name, int search_fla * @param[in] key_val_sep character used to separate key from value * @param[in] pairs_sep character used to separate two pairs from each other * @return >= 0 on success, negative on error + * @warning Separators cannot be neither '\\' nor '\0'. They also cannot be the same. */ int av_opt_serialize(void *obj, int opt_flags, int flags, char **buffer, const char key_val_sep, const char pairs_sep); |