]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtmpcrypt.c
fate: add demux test for TS with AC3 (Ticket 4864)
[ffmpeg] / libavformat / rtmpcrypt.c
index 811c74cdfa5f46822b86fd109b5b0a98001e742e..3d5eb223921e589c30bf1f16e0e6755c2ed7c746 100644 (file)
@@ -266,7 +266,7 @@ static int rtmpe_open(URLContext *h, const char *uri, int flags)
     /* open the tcp or ffrtmphttp connection */
     if ((ret = ffurl_open_whitelist(&rt->stream, url, AVIO_FLAG_READ_WRITE,
                                     &h->interrupt_callback, NULL,
-                                    h->protocol_whitelist)) < 0) {
+                                    h->protocol_whitelist, h->protocol_blacklist)) < 0) {
         rtmpe_close(h);
         return ret;
     }
@@ -325,7 +325,7 @@ static const AVClass ffrtmpcrypt_class = {
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
-URLProtocol ff_ffrtmpcrypt_protocol = {
+const URLProtocol ff_ffrtmpcrypt_protocol = {
     .name            = "ffrtmpcrypt",
     .url_open        = rtmpe_open,
     .url_read        = rtmpe_read,