From: Limin Wang <[email protected]>
Signed-off-by: Limin Wang <[email protected]>
---
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
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".