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

alex subversion
Tue Mar 6 14:38:41 CET 2007


Author: alex
Date: Tue Mar  6 14:38:41 2007
New Revision: 8272

Modified:
   trunk/libavformat/http.c

Log:
handle http error codes

Modified: trunk/libavformat/http.c
==============================================================================
--- trunk/libavformat/http.c	(original)
+++ trunk/libavformat/http.c	Tue Mar  6 14:38:41 2007
@@ -169,6 +169,9 @@ static int process_line(URLContext *h, c
 #ifdef DEBUG
         printf("http_code=%d\n", s->http_code);
 #endif
+        /* error codes are 4xx and 5xx */
+        if (s->http_code >= 400 && s->http_code < 600)
+            return -1;
     } else {
         while (*p != '\0' && *p != ':')
             p++;




More information about the ffmpeg-cvslog mailing list