avformat/rtsp: support infinite initial_timeout for rtsp option
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
06aab9790d
commit
c8101aabee
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user