diff --git a/libavformat/http.c b/libavformat/http.c
index b28a56f7eac689bf0e2a56e0d9337abfc79f8615..6a509dc6aa2187561f63b8095fe221f6e97630e9 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;
     }