diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2008-08-23 17:39:10 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2008-08-23 17:39:10 +0000 |
commit | ad33bfefc7e1a0ddc9569bfc480835cf2fd80272 (patch) | |
tree | 3e59edbec4996f202b0fe9f7035389f2126e7047 /libavformat/tcp.c | |
parent | 2e0b635a57c39ca0ff968904370fc1a7b2cb7a2a (diff) | |
download | ffmpeg-ad33bfefc7e1a0ddc9569bfc480835cf2fd80272.tar.gz |
Remove useless comments. See "[PATCH] tcp.c/udp.c memleak?" for discussion.
Originally committed as revision 14922 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/tcp.c')
-rw-r--r-- | libavformat/tcp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 6c25e72b6f..957b1adfe7 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -39,12 +39,12 @@ static int tcp_open(URLContext *h, const char *uri, int flags) int fd_max, ret; struct timeval tv; socklen_t optlen; - char proto[1024],path[1024],tmp[1024]; // PETR: protocol and path strings + char proto[1024],path[1024],tmp[1024]; url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname), - &port, path, sizeof(path), uri); // PETR: use url_split - if (strcmp(proto,"tcp")) goto fail; // PETR: check protocol - if ((q = strchr(hostname,'@'))) { strcpy(tmp,q+1); strcpy(hostname,tmp); } // PETR: take only the part after '@' for tcp protocol + &port, path, sizeof(path), uri); + if (strcmp(proto,"tcp")) goto fail; + if ((q = strchr(hostname,'@'))) { strcpy(tmp,q+1); strcpy(hostname,tmp); } s = av_malloc(sizeof(TCPContext)); if (!s) |