From 93629735d76c09405248c1f6b2b2c5517fff88fd Mon Sep 17 00:00:00 2001 From: Derek Buitenhuis Date: Thu, 3 Mar 2016 17:14:26 +0000 Subject: avformat: Add a protocol blacklisting API Signed-off-by: Derek Buitenhuis --- libavformat/rtpproto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavformat/rtpproto.c') diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c index a35ff5f216..451d8114e5 100644 --- a/libavformat/rtpproto.c +++ b/libavformat/rtpproto.c @@ -381,7 +381,7 @@ static int rtp_open(URLContext *h, const char *uri, int flags) hostname, rtp_port, s->local_rtpport, sources, block); if (ffurl_open_whitelist(&s->rtp_hd, buf, flags, &h->interrupt_callback, - NULL, h->protocol_whitelist) < 0) + NULL, h->protocol_whitelist, h->protocol_blacklist) < 0) goto fail; s->local_rtpport = ff_udp_get_local_port(s->rtp_hd); if(s->local_rtpport == 65535) { @@ -395,7 +395,7 @@ static int rtp_open(URLContext *h, const char *uri, int flags) sources, block); if (ffurl_open_whitelist(&s->rtcp_hd, buf, flags, &h->interrupt_callback, NULL, - h->protocol_whitelist) < 0) { + h->protocol_whitelist, h->protocol_blacklist) < 0) { s->local_rtpport = s->local_rtcpport = -1; continue; } @@ -405,7 +405,7 @@ static int rtp_open(URLContext *h, const char *uri, int flags) hostname, s->rtcp_port, s->local_rtcpport, sources, block); if (ffurl_open_whitelist(&s->rtcp_hd, buf, flags, &h->interrupt_callback, - NULL, h->protocol_whitelist) < 0) + NULL, h->protocol_whitelist, h->protocol_blacklist) < 0) goto fail; break; } -- cgit v1.2.3