| OLD | NEW |
| 1 /* | 1 /* |
| 2 * UDP prototype streaming system | 2 * UDP prototype streaming system |
| 3 * Copyright (c) 2000, 2001, 2002 Fabrice Bellard | 3 * Copyright (c) 2000, 2001, 2002 Fabrice Bellard |
| 4 * | 4 * |
| 5 * This file is part of FFmpeg. | 5 * This file is part of FFmpeg. |
| 6 * | 6 * |
| 7 * FFmpeg is free software; you can redistribute it and/or | 7 * FFmpeg is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2.1 of the License, or (at your option) any later version. | 10 * version 2.1 of the License, or (at your option) any later version. |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 s->dest_addr_len = udp_set_url(&s->dest_addr, hostname, port); | 272 s->dest_addr_len = udp_set_url(&s->dest_addr, hostname, port); |
| 273 if (s->dest_addr_len < 0) { | 273 if (s->dest_addr_len < 0) { |
| 274 return AVERROR(EIO); | 274 return AVERROR(EIO); |
| 275 } | 275 } |
| 276 s->is_multicast = is_multicast_address(&s->dest_addr); | 276 s->is_multicast = is_multicast_address(&s->dest_addr); |
| 277 | 277 |
| 278 return 0; | 278 return 0; |
| 279 } | 279 } |
| 280 | 280 |
| 281 /** | 281 /** |
| 282 * Return the local port used by the UDP connexion | 282 * Return the local port used by the UDP connection |
| 283 * @param s1 media file context | 283 * @param s1 media file context |
| 284 * @return the local port number | 284 * @return the local port number |
| 285 */ | 285 */ |
| 286 int udp_get_local_port(URLContext *h) | 286 int udp_get_local_port(URLContext *h) |
| 287 { | 287 { |
| 288 UDPContext *s = h->priv_data; | 288 UDPContext *s = h->priv_data; |
| 289 return s->local_port; | 289 return s->local_port; |
| 290 } | 290 } |
| 291 | 291 |
| 292 /** | 292 /** |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 | 489 |
| 490 URLProtocol udp_protocol = { | 490 URLProtocol udp_protocol = { |
| 491 "udp", | 491 "udp", |
| 492 udp_open, | 492 udp_open, |
| 493 udp_read, | 493 udp_read, |
| 494 udp_write, | 494 udp_write, |
| 495 NULL, /* seek */ | 495 NULL, /* seek */ |
| 496 udp_close, | 496 udp_close, |
| 497 .url_get_file_handle = udp_get_file_handle, | 497 .url_get_file_handle = udp_get_file_handle, |
| 498 }; | 498 }; |
| OLD | NEW |