diff --git a/libav/http.c b/libav/http.c
index 43af02d3a9ee5e0d792458c0f063d9edfdc008c7..fb839f6a679460bb544b5485215321f8bfd8569d 100644
--- a/libav/http.c
+++ b/libav/http.c
@@ -65,7 +65,7 @@ static int http_open(URLContext *h, const char *uri, int flags)
     h->priv_data = s;
 
     proxy_path = getenv("http_proxy");
-    use_proxy = (proxy_path != NULL) && !getenv("no_proxy");
+    use_proxy = (proxy_path != NULL) && !getenv("no_proxy") && (strncmp(proxy_path, "http://", 7) == 0);
 
     /* fill the dest addr */
  redo: