avio: replace ETIMEDOUT by EIO
[ffmpeg.git] / libavformat / avio.c
index 6ed63f4..abc7072 100644 (file)
@@ -272,7 +272,7 @@ static inline int retry_transfer_wrapper(URLContext *h, unsigned char *buf, int
                     if (!wait_since)
                         wait_since = av_gettime();
                     else if (av_gettime() > wait_since + h->rw_timeout)
-                        return AVERROR(ETIMEDOUT);
+                        return AVERROR(EIO);
                 }
                 av_usleep(1000);
             }