comparison rtpproto.c @ 511:056991ab9f10 libavformat

HTTP Authentication Patch by (Petr Doubek <doubek at vision dot ee dot ethz dot ch>) tested and submitted by (Torsten Spindler <spindler at hbt dot arch dot ethz dot ch>)
author michael
date Thu, 12 Aug 2004 00:09:32 +0000
parents 0fdc96c2f2fe
children da1d5db0ce5c
comparison
equal deleted inserted replaced
510:133287132e1d 511:056991ab9f10
55 int port; 55 int port;
56 56
57 char buf[1024]; 57 char buf[1024];
58 char path[1024]; 58 char path[1024];
59 59
60 url_split(NULL, 0, hostname, sizeof(hostname), &port, 60 url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &port,
61 path, sizeof(path), uri); 61 path, sizeof(path), uri);
62 62
63 snprintf(buf, sizeof(buf), "udp://%s:%d%s", hostname, port, path); 63 snprintf(buf, sizeof(buf), "udp://%s:%d%s", hostname, port, path);
64 udp_set_remote_url(s->rtp_hd, buf); 64 udp_set_remote_url(s->rtp_hd, buf);
65 65
120 s = av_mallocz(sizeof(RTPContext)); 120 s = av_mallocz(sizeof(RTPContext));
121 if (!s) 121 if (!s)
122 return -ENOMEM; 122 return -ENOMEM;
123 h->priv_data = s; 123 h->priv_data = s;
124 124
125 url_split(NULL, 0, hostname, sizeof(hostname), &port, 125 url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &port,
126 path, sizeof(path), uri); 126 path, sizeof(path), uri);
127 /* extract parameters */ 127 /* extract parameters */
128 is_multicast = 0; 128 is_multicast = 0;
129 ttl = -1; 129 ttl = -1;
130 local_port = -1; 130 local_port = -1;