diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-11 20:49:05 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-13 16:40:11 +0100 |
commit | a9b81bfd1c7a9b3d4c92af99aee9a284d1133b9e (patch) | |
tree | 126a750ca183878424d8c1ce2eeda329649792ee /libavutil/avstring.h | |
parent | d18df8beb0a0ba1fe22b1fa3a2ea1dc679f100f7 (diff) | |
download | ffmpeg-a9b81bfd1c7a9b3d4c92af99aee9a284d1133b9e.tar.gz |
avutil/avstring: add a "ALL" entry and the possibility to negate matches to av_match_name()
This will extend the whitelist features to allow blacklisting individual protocols and to
explicitly force everything to be enabled.
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/avstring.h')
-rw-r--r-- | libavutil/avstring.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/avstring.h b/libavutil/avstring.h index a46d012552..15b04babef 100644 --- a/libavutil/avstring.h +++ b/libavutil/avstring.h @@ -284,6 +284,11 @@ const char *av_dirname(char *path); /** * Match instances of a name in a comma-separated list of names. + * List entries are checked from the start to the end of the names list, + * the first match ends further processing. If an entry prefixed with '-' + * matches, then 0 is returned. The "ALL" list entry is considered to + * match all names. + * * @param name Name to look for. * @param names List of names. * @return 1 on match, 0 otherwise. |