Use usleep instead of sleep, some MinGW versions lack sleep.
[ffmpeg.git] / libavformat / http.c
index b28a56f..6a509dc 100644 (file)
@@ -245,7 +245,7 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr,
     s->off = 0;
     s->filesize = -1;
     if (post) {
     s->off = 0;
     s->filesize = -1;
     if (post) {
-        sleep(1);
+        usleep(1000*1000);
         return 0;
     }
 
         return 0;
     }