X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fsrtpproto.c;h=460799ae15e53dd0b8131b609e5fd8114a06f7fc;hb=4ca8879d19893562040670f488a9c47aea77beb4;hp=0124696ad0421c4e416c631222ceb0a987bd54aa;hpb=7c6e86c0cec17dfc020d58c82f4f1af5fcaea6c1;p=ffmpeg diff --git a/libavformat/srtpproto.c b/libavformat/srtpproto.c index 0124696ad04..460799ae15e 100644 --- a/libavformat/srtpproto.c +++ b/libavformat/srtpproto.c @@ -80,7 +80,8 @@ static int srtp_open(URLContext *h, const char *uri, int flags) av_url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &rtp_port, path, sizeof(path), uri); ff_url_join(buf, sizeof(buf), "rtp", NULL, hostname, rtp_port, "%s", path); - if ((ret = ffurl_open(&s->rtp_hd, buf, flags, &h->interrupt_callback, NULL)) < 0) + if ((ret = ffurl_open_whitelist(&s->rtp_hd, buf, flags, &h->interrupt_callback, + NULL, h->protocol_whitelist)) < 0) goto fail; h->max_packet_size = FFMIN(s->rtp_hd->max_packet_size,