Browse Source

handle http error codes

Originally committed as revision 8272 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Alex Beregszaszi 19 years ago
parent
commit
7b19aa64dc
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/http.c

+ 3
- 0
libavformat/http.c View File

@@ -169,6 +169,9 @@ static int process_line(URLContext *h, char *line, int line_count,
#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++;


Loading…
Cancel
Save