[FFmpeg-devel] [PATCH] avformat/rtsp: support infinite initial_timeout for rtsp option
lance.lmwang at gmail.com
lance.lmwang at gmail.com
Tue Nov 3 12:31:41 EET 2020
From: Limin Wang <lance.lmwang at gmail.com>
Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
libavformat/rtsp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 49c2d52..4427bd2 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -2049,7 +2049,7 @@ static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
}
}
#endif
- } else if (n == 0 && --runs <= 0) {
+ } else if (n == 0 && rt->initial_timeout > 0 && --runs <= 0) {
return AVERROR(ETIMEDOUT);
} else if (n < 0 && errno != EINTR)
return AVERROR(errno);
--
1.8.3.1
More information about the ffmpeg-devel
mailing list