summaryrefslogtreecommitdiff
path: root/libavformat/rtmpcrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/rtmpcrypt.c')
-rw-r--r--libavformat/rtmpcrypt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/rtmpcrypt.c b/libavformat/rtmpcrypt.c
index a0c914f395..811c74cdfa 100644
--- a/libavformat/rtmpcrypt.c
+++ b/libavformat/rtmpcrypt.c
@@ -264,8 +264,9 @@ static int rtmpe_open(URLContext *h, const char *uri, int flags)
}
/* open the tcp or ffrtmphttp connection */
- if ((ret = ffurl_open(&rt->stream, url, AVIO_FLAG_READ_WRITE,
- &h->interrupt_callback, NULL)) < 0) {
+ if ((ret = ffurl_open_whitelist(&rt->stream, url, AVIO_FLAG_READ_WRITE,
+ &h->interrupt_callback, NULL,
+ h->protocol_whitelist)) < 0) {
rtmpe_close(h);
return ret;
}