projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0a5513
)
handle http error codes
author
Alex Beregszaszi
<alex@rtfs.hu>
Tue, 6 Mar 2007 13:38:41 +0000
(13:38 +0000)
committer
Alex Beregszaszi
<alex@rtfs.hu>
Tue, 6 Mar 2007 13:38:41 +0000
(13:38 +0000)
Originally committed as revision 8272 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/http.c
patch
|
blob
|
history
diff --git
a/libavformat/http.c
b/libavformat/http.c
index
092151f
..
46b1814
100644
(file)
--- a/
libavformat/http.c
+++ b/
libavformat/http.c
@@
-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++;