diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 8841ea80c6..dabfc61db9 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1692,7 +1692,7 @@ static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st, } #endif } else if (n == 0 && ++timeout_cnt >= MAX_TIMEOUTS) { - return AVERROR(ETIME); + return AVERROR(ETIMEDOUT); } else if (n < 0 && errno != EINTR) return AVERROR(errno); }