From c8df9c63587e061e08d17ace01fef15fb9834b4d Mon Sep 17 00:00:00 2001
From: Alex Beregszaszi <alex@rtfs.hu>
Date: Thu, 17 May 2007 10:30:03 +0000
Subject: [PATCH] Use usleep instead of sleep, some MinGW versions lack sleep.

Originally committed as revision 9044 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavformat/http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index b28a56f7eac..6a509dc6aa2 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -245,7 +245,7 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr,
     s->off = 0;
     s->filesize = -1;
     if (post) {
-        sleep(1);
+        usleep(1000*1000);
         return 0;
     }
 
-- 
GitLab