| OLD | NEW |
| 1 /* | 1 /* |
| 2 * copyright (c) 2007 Luca Abeni | 2 * copyright (c) 2007 Luca Abeni |
| 3 * | 3 * |
| 4 * This file is part of FFmpeg. | 4 * This file is part of FFmpeg. |
| 5 * | 5 * |
| 6 * FFmpeg is free software; you can redistribute it and/or | 6 * FFmpeg is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Lesser General Public | 7 * modify it under the terms of the GNU Lesser General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2.1 of the License, or (at your option) any later version. | 9 * version 2.1 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 { | 102 { |
| 103 } | 103 } |
| 104 #endif | 104 #endif |
| 105 | 105 |
| 106 static int sdp_get_address(char *dest_addr, int size, int *ttl, const char *url) | 106 static int sdp_get_address(char *dest_addr, int size, int *ttl, const char *url) |
| 107 { | 107 { |
| 108 int port; | 108 int port; |
| 109 const char *p; | 109 const char *p; |
| 110 char proto[32]; | 110 char proto[32]; |
| 111 | 111 |
| 112 url_split(proto, sizeof(proto), NULL, 0, dest_addr, size, &port, NULL, 0, ur
l); | 112 ff_url_split(proto, sizeof(proto), NULL, 0, dest_addr, size, &port, NULL, 0,
url); |
| 113 | 113 |
| 114 *ttl = 0; | 114 *ttl = 0; |
| 115 | 115 |
| 116 if (strcmp(proto, "rtp")) { | 116 if (strcmp(proto, "rtp")) { |
| 117 /* The url isn't for the actual rtp sessions, | 117 /* The url isn't for the actual rtp sessions, |
| 118 * don't parse out anything else than the destination. | 118 * don't parse out anything else than the destination. |
| 119 */ | 119 */ |
| 120 return 0; | 120 return 0; |
| 121 } | 121 } |
| 122 | 122 |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 } | 363 } |
| 364 | 364 |
| 365 return 0; | 365 return 0; |
| 366 } | 366 } |
| 367 #else | 367 #else |
| 368 int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size) | 368 int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size) |
| 369 { | 369 { |
| 370 return AVERROR(ENOSYS); | 370 return AVERROR(ENOSYS); |
| 371 } | 371 } |
| 372 #endif | 372 #endif |
| OLD | NEW |