| Index: patched-ffmpeg-mt/libavformat/tcp.c
|
| ===================================================================
|
| --- patched-ffmpeg-mt/libavformat/tcp.c (revision 41250)
|
| +++ patched-ffmpeg-mt/libavformat/tcp.c (working copy)
|
| @@ -44,10 +44,7 @@
|
| char hostname[1024],proto[1024],path[1024];
|
| char portstr[10];
|
|
|
| - if(!ff_network_init())
|
| - return AVERROR(EIO);
|
| -
|
| - url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname),
|
| + ff_url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname),
|
| &port, path, sizeof(path), uri);
|
| if (strcmp(proto,"tcp") || port <= 0 || port >= 65536)
|
| return AVERROR(EINVAL);
|
| @@ -192,7 +189,6 @@
|
| {
|
| TCPContext *s = h->priv_data;
|
| closesocket(s->fd);
|
| - ff_network_close();
|
| av_free(s);
|
| return 0;
|
| }
|
|
|