@@ -1264,7 +1264,8 @@ Set to 1 to disable processing alpha (transparency). This works like the
instead of alpha. Default is 0.
@item codec_whitelist @var{list} (@emph{input})
-"," separated list of allowed decoders. By default all are allowed.
+Set a ","-separated list of allowed decoders. "ALL" matches all decoders. Decoders
+prefixed by "-" are disabled. By default all are allowed.
@item dump_separator @var{string} (@emph{input})
Separator used to separate the fields printed on the command line about the
@@ -199,7 +199,8 @@ delayed bt the time duration specified in @var{offset}. Default value
is @code{0} (meaning that no offset is applied).
@item format_whitelist @var{list} (@emph{input})
-"," separated list of allowed demuxers. By default all are allowed.
+Set a ","-separated list of allowed demuxers. "ALL" matches all demuxers. Demuxers
+prefixed by "-" are disabled. By default all are allowed.
@item dump_separator @var{string} (@emph{input})
Separator used to separate the fields printed on the command line about the
@@ -725,7 +725,7 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
if ((ret = av_opt_set_dict(avctx, &tmp)) < 0)
goto free_and_end;
- if (avctx->codec_whitelist && av_match_list(codec->name, avctx->codec_whitelist, ',') <= 0) {
+ if (avctx->codec_whitelist && av_match_name(codec->name, avctx->codec_whitelist) <= 0) {
av_log(avctx, AV_LOG_ERROR, "Codec (%s) not on whitelist \'%s\'\n", codec->name, avctx->codec_whitelist);
ret = AVERROR(EINVAL);
goto free_and_end;
@@ -178,7 +178,7 @@ int ffurl_connect(URLContext *uc, AVDictionary **options)
av_assert0(!(e=av_dict_get(*options, "protocol_blacklist", NULL, 0)) ||
(uc->protocol_blacklist && !strcmp(uc->protocol_blacklist, e->value)));
- if (uc->protocol_whitelist && av_match_list(uc->prot->name, uc->protocol_whitelist, ',') <= 0) {
+ if (uc->protocol_whitelist && av_match_name(uc->prot->name, uc->protocol_whitelist) <= 0) {
av_log(uc, AV_LOG_ERROR, "Protocol '%s' not on whitelist '%s'!\n", uc->prot->name, uc->protocol_whitelist);
return AVERROR(EINVAL);
}
@@ -373,7 +373,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
int av_demuxer_open(AVFormatContext *ic) {
int err;
- if (ic->format_whitelist && av_match_list(ic->iformat->name, ic->format_whitelist, ',') <= 0) {
+ if (ic->format_whitelist && av_match_name(ic->iformat->name, ic->format_whitelist) <= 0) {
av_log(ic, AV_LOG_ERROR, "Format not on whitelist \'%s\'\n", ic->format_whitelist);
return AVERROR(EINVAL);
}
@@ -553,7 +553,7 @@ int avformat_open_input(AVFormatContext **ps, const char *filename,
}
}
- if (s->format_whitelist && av_match_list(s->iformat->name, s->format_whitelist, ',') <= 0) {
+ if (s->format_whitelist && av_match_name(s->iformat->name, s->format_whitelist) <= 0) {
av_log(s, AV_LOG_ERROR, "Format not on whitelist \'%s\'\n", s->format_whitelist);
ret = AVERROR(EINVAL);
goto fail;
Also make docs consistent Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- doc/codecs.texi | 3 ++- doc/formats.texi | 3 ++- libavcodec/utils.c | 2 +- libavformat/avio.c | 2 +- libavformat/utils.c | 4 ++-- 5 files changed, 8 insertions(+), 6 deletions(-)