mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 01:40:04 +01:00
Update demuxers and protocols for protocol whitelist support
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user