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:
8f7c245
)
Reindent
author
Martin Storsjö
<martin@martin.st>
Sat, 2 Oct 2010 21:58:13 +0000
(21:58 +0000)
committer
Martin Storsjö
<martin@martin.st>
Sat, 2 Oct 2010 21:58:13 +0000
(21:58 +0000)
Originally committed as revision 25317 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/applehttp.c
patch
|
blob
|
history
diff --git
a/libavformat/applehttp.c
b/libavformat/applehttp.c
index
1252dc5
..
f8f1f39
100644
(file)
--- a/
libavformat/applehttp.c
+++ b/
libavformat/applehttp.c
@@
-102,12
+102,12
@@
static void make_absolute_url(char *buf, int size, const char *base,
else
buf[0] = '\0';
while (av_strstart(rel, "../", NULL) && sep) {
-
sep[0] = '\0';
-
sep = strrchr(buf, '/');
-
if (sep)
-
sep[1] = '\0';
-
else
-
buf[0] = '\0';
+ sep[0] = '\0';
+ sep = strrchr(buf, '/');
+ if (sep)
+ sep[1] = '\0';
+ else
+ buf[0] = '\0';
rel += 3;
}
av_strlcat(buf, rel, size);