[FFmpeg-devel] [PATCH] avio: replace ETIMEDOUT by EIO

Michael Niedermayer michaelni at gmx.at
Thu Sep 6 00:36:18 CEST 2012


ETIMEDOUT is not available on all platforms

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavformat/avio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/avio.c b/libavformat/avio.c
index 6ed63f4..abc7072 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -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);
             }
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list