diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2020-11-03 18:15:21 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2020-11-07 10:13:29 +0800 |
commit | c8101aabee654f6d147a4d89f77fa73e18908610 (patch) | |
tree | 46a4e186762bcef00be23f48bb48bf9a848eee0c | |
parent | 06aab9790db1f7cd57bdcba6008c5e7f4030c7c4 (diff) | |
download | ffmpeg-c8101aabee654f6d147a4d89f77fa73e18908610.tar.gz |
avformat/rtsp: support infinite initial_timeout for rtsp option
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
-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); |