]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/crypto.c
avformat: support shorten in nistshpere demuxer
[ffmpeg] / libavformat / crypto.c
index b1871fe9744ec3c24f7c284632c9cf9028413936..4222e1e33f8f8e87d0b341a7095b8a9099894080 100644 (file)
@@ -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,