X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fcrypto.c;h=4222e1e33f8f8e87d0b341a7095b8a9099894080;hb=0c9490609d888ba384798777a3daaf012488ad89;hp=b1871fe9744ec3c24f7c284632c9cf9028413936;hpb=1a12eb4a7314900b9569d6cc76814f39f95922bd;p=ffmpeg diff --git a/libavformat/crypto.c b/libavformat/crypto.c index b1871fe9744..4222e1e33f8 100644 --- a/libavformat/crypto.c +++ b/libavformat/crypto.c @@ -138,7 +138,7 @@ static int crypto_open2(URLContext *h, const char *uri, int flags, AVDictionary if ((ret = ffurl_open_whitelist(&c->hd, nested_url, flags, &h->interrupt_callback, options, - h->protocol_whitelist)) < 0) { + h->protocol_whitelist, h->protocol_blacklist)) < 0) { av_log(h, AV_LOG_ERROR, "Unable to open resource: %s\n", nested_url); goto err; } @@ -284,7 +284,7 @@ static int crypto_close(URLContext *h) return 0; } -URLProtocol ff_crypto_protocol = { +const URLProtocol ff_crypto_protocol = { .name = "crypto", .url_open2 = crypto_open2, .url_read = crypto_read,