[Ffmpeg-cvslog] r8219 - trunk/libavformat/http.c

gpoirier subversion
Sun Mar 4 12:52:47 CET 2007


Author: gpoirier
Date: Sun Mar  4 12:52:46 2007
New Revision: 8219

Modified:
   trunk/libavformat/http.c

Log:
make HTTP MOVED messages also work in ffmpeg (302 is essentially the same as 303).
patch by "Ronald S. Bultje" % rbultje A ronald P bitfreak P net%
original thread:
Date: Mar 4, 2007 1:21 AM
Subject: [Ffmpeg-devel] http move


Modified: trunk/libavformat/http.c
==============================================================================
--- trunk/libavformat/http.c	(original)
+++ trunk/libavformat/http.c	Sun Mar  4 12:52:46 2007
@@ -96,7 +96,7 @@ static int http_open_cnx(URLContext *h)
     s->hd = hd;
     if (http_connect(h, path, hoststr, auth, &location_changed) < 0)
         goto fail;
-    if (s->http_code == 303 && location_changed == 1) {
+    if ((s->http_code == 302 || s->http_code == 303) && location_changed == 1) {
         /* url moved, get next */
         url_close(hd);
         if (redirects++ >= MAX_REDIRECTS)




More information about the ffmpeg-cvslog mailing list