Mercurial > libavformat.hg
comparison rtpproto.c @ 2079:c5a3a1f884a4 libavformat
Typos
author | takis |
---|---|
date | Thu, 10 May 2007 10:51:00 +0000 |
parents | eeea52739ff3 |
children | 5ce5fad0dfac |
comparison
equal
deleted
inserted
replaced
2078:17b7ebc3e1f9 | 2079:c5a3a1f884a4 |
---|---|
136 build_udp_url(buf, sizeof(buf), | 136 build_udp_url(buf, sizeof(buf), |
137 hostname, port, local_port, is_multicast, ttl); | 137 hostname, port, local_port, is_multicast, ttl); |
138 if (url_open(&s->rtp_hd, buf, flags) < 0) | 138 if (url_open(&s->rtp_hd, buf, flags) < 0) |
139 goto fail; | 139 goto fail; |
140 local_port = udp_get_local_port(s->rtp_hd); | 140 local_port = udp_get_local_port(s->rtp_hd); |
141 /* XXX: need to open another connexion if the port is not even */ | 141 /* XXX: need to open another connection if the port is not even */ |
142 | 142 |
143 /* well, should suppress localport in path */ | 143 /* well, should suppress localport in path */ |
144 | 144 |
145 build_udp_url(buf, sizeof(buf), | 145 build_udp_url(buf, sizeof(buf), |
146 hostname, port + 1, local_port + 1, is_multicast, ttl); | 146 hostname, port + 1, local_port + 1, is_multicast, ttl); |
263 av_free(s); | 263 av_free(s); |
264 return 0; | 264 return 0; |
265 } | 265 } |
266 | 266 |
267 /** | 267 /** |
268 * Return the local port used by the RTP connexion | 268 * Return the local port used by the RTP connection |
269 * @param s1 media file context | 269 * @param s1 media file context |
270 * @return the local port number | 270 * @return the local port number |
271 */ | 271 */ |
272 int rtp_get_local_port(URLContext *h) | 272 int rtp_get_local_port(URLContext *h) |
273 { | 273 { |