Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2475)

Unified Diff: patched-ffmpeg-mt/libavformat/tcp.c

Issue 789004: ffmpeg roll of source to mar 9 version... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698