[FFmpeg-cvslog] r14922 - trunk/libavformat/tcp.c
rbultje
subversion
Sat Aug 23 19:39:10 CEST 2008
Author: rbultje
Date: Sat Aug 23 19:39:10 2008
New Revision: 14922
Log:
Remove useless comments. See "[PATCH] tcp.c/udp.c memleak?" for discussion.
Modified:
trunk/libavformat/tcp.c
Modified: trunk/libavformat/tcp.c
==============================================================================
--- trunk/libavformat/tcp.c (original)
+++ trunk/libavformat/tcp.c Sat Aug 23 19:39:10 2008
@@ -39,12 +39,12 @@ static int tcp_open(URLContext *h, const
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)
More information about the ffmpeg-cvslog
mailing list