From 290a35aefed250a797449c34d2f9e5af0c4e006a Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Sat, 15 Feb 2020 11:30:16 +0100 Subject: [PATCH] avformat/libsrt: make avformat connect timeout 0 by default Otherwise the user is not able to override the SRT API connect timeout above 5 sec without also setting the timeout option. Signed-off-by: Marton Balint --- libavformat/libsrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c index f24ce46831..2d6fc4b7e7 100644 --- a/libavformat/libsrt.c +++ b/libavformat/libsrt.c @@ -361,7 +361,7 @@ static int libsrt_setup(URLContext *h, const char *uri, int flags) int ret; char hostname[1024],proto[1024],path[1024]; char portstr[10]; - int open_timeout = 5000000; + int open_timeout = 0; int eid; eid = srt_epoll_create();