diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2020-11-03 13:15:21 +0300 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2020-11-07 05:13:29 +0300 |
commit | c8101aabee654f6d147a4d89f77fa73e18908610 (patch) | |
tree | 46a4e186762bcef00be23f48bb48bf9a848eee0c /libavformat/rtsp.c | |
parent | 06aab9790db1f7cd57bdcba6008c5e7f4030c7c4 (diff) |
avformat/rtsp: support infinite initial_timeout for rtsp option
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 49c2d52375..4427bd268f 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); |