Skip to content

Commit

Permalink
ffmpeg 4.4 - fix whitelist problem
Browse files Browse the repository at this point in the history
  • Loading branch information
BPanther committed Nov 27, 2021
1 parent f8e4ce8 commit e012702
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions patches/ffmpeg/4.4/ffmpeg-4.4-whitelist.patch
@@ -0,0 +1,19 @@
diff --git a/libavformat/avio.c b/libavformat/avio.c
index 4846bbd8c6..978bf72994 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -178,12 +178,12 @@ int ffurl_connect(URLContext *uc, AVDictionary **options)
(uc->protocol_whitelist && !strcmp(uc->protocol_whitelist, e->value)));
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) {
av_log(uc, AV_LOG_ERROR, "Protocol '%s' not on whitelist '%s'!\n", uc->prot->name, uc->protocol_whitelist);
return AVERROR(EINVAL);
}
-
+*/
if (uc->protocol_blacklist && av_match_list(uc->prot->name, uc->protocol_blacklist, ',') > 0) {
av_log(uc, AV_LOG_ERROR, "Protocol '%s' on blacklist '%s'!\n", uc->prot->name, uc->protocol_blacklist);
return AVERROR(EINVAL);

0 comments on commit e012702

Please sign in to comment.