提交 7b19aa64 编写于 作者: A Alex Beregszaszi

handle http error codes

Originally committed as revision 8272 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 d0a5513b
...@@ -169,6 +169,9 @@ static int process_line(URLContext *h, char *line, int line_count, ...@@ -169,6 +169,9 @@ static int process_line(URLContext *h, char *line, int line_count,
#ifdef DEBUG #ifdef DEBUG
printf("http_code=%d\n", s->http_code); printf("http_code=%d\n", s->http_code);
#endif #endif
/* error codes are 4xx and 5xx */
if (s->http_code >= 400 && s->http_code < 600)
return -1;
} else { } else {
while (*p != '\0' && *p != ':') while (*p != '\0' && *p != ':')
p++; p++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册