first patch by author rcombs on irc/trac 
second patch by lu_zero.

sample url is http://www.internetvideoarchive.com/ (click on a trailer
and sniff http url).

-compn
diff --git a/libavformat/http.c b/libavformat/http.c
index 33585b0..3dffaee 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -229,6 +229,7 @@ redo:
         memset(&s->auth_state, 0, sizeof(s->auth_state));
         attempts         = 0;
         location_changed = 0;
+        lower_proto      = "tcp";
         goto redo;
     }
     return 0;
diff --git a/libavformat/http.c b/libavformat/http.c
index bd75611..b0bcfb8 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -161,9 +161,11 @@ redo:
         use_proxy   = 0;
         if (port < 0)
             port = 443;
+    } else {
+        lower_proto = "tcp";
+        if (port < 0)
+            port = 80;
     }
-    if (port < 0)
-        port = 80;

     if (path1[0] == '\0')
         path = "/";
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to