Message ID | 1604399501-20052-1-git-send-email-lance.lmwang@gmail.com |
---|---|
State | Accepted |
Commit | c8101aabee654f6d147a4d89f77fa73e18908610 |
Headers | show |
Series | [FFmpeg-devel] avformat/rtsp: support infinite initial_timeout for rtsp option | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
andriy/PPC64_make | success | Make finished |
andriy/PPC64_make_fate | success | Make fate finished |
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);