mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
avformat/rtsp: Pass blacklist
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 88eb772900)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -1892,6 +1892,15 @@ redirect:
|
||||
}
|
||||
}
|
||||
|
||||
if (!rt->rtsp_hd->protocol_blacklist && s->protocol_blacklist) {
|
||||
rt->rtsp_hd->protocol_blacklist = av_strdup(s->protocol_blacklist);
|
||||
if (!rt->rtsp_hd->protocol_blacklist) {
|
||||
av_dict_free(&options);
|
||||
err = AVERROR(ENOMEM);
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
/* complete the connection */
|
||||
if (ffurl_connect(rt->rtsp_hd, &options)) {
|
||||
av_dict_free(&options);
|
||||
|
||||
Reference in New Issue
Block a user