Mercurial > libavformat.hg
comparison rtsp.c @ 5766:a292ef47e2f9 libavformat
Localize the #define _SVID_SOURCE needed for inet_aton() to os_support.c
author | conrad |
---|---|
date | Sun, 07 Mar 2010 19:48:59 +0000 |
parents | 7c7fe75728dd |
children | 7a123cc24a81 |
comparison
equal
deleted
inserted
replaced
5765:6d4ba584fcf2 | 5766:a292ef47e2f9 |
---|---|
17 * You should have received a copy of the GNU Lesser General Public | 17 * You should have received a copy of the GNU Lesser General Public |
18 * License along with FFmpeg; if not, write to the Free Software | 18 * License along with FFmpeg; if not, write to the Free Software |
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
20 */ | 20 */ |
21 | 21 |
22 /* needed by inet_aton() */ | |
23 #define _SVID_SOURCE | |
24 | |
25 #include "libavutil/base64.h" | 22 #include "libavutil/base64.h" |
26 #include "libavutil/avstring.h" | 23 #include "libavutil/avstring.h" |
27 #include "libavutil/intreadwrite.h" | 24 #include "libavutil/intreadwrite.h" |
28 #include "avformat.h" | 25 #include "avformat.h" |
29 | 26 |
357 return; | 354 return; |
358 get_word(buf1, sizeof(buf1), &p); | 355 get_word(buf1, sizeof(buf1), &p); |
359 if (strcmp(buf1, "IP4") != 0) | 356 if (strcmp(buf1, "IP4") != 0) |
360 return; | 357 return; |
361 get_word_sep(buf1, sizeof(buf1), "/", &p); | 358 get_word_sep(buf1, sizeof(buf1), "/", &p); |
362 if (inet_aton(buf1, &sdp_ip) == 0) | 359 if (ff_inet_aton(buf1, &sdp_ip) == 0) |
363 return; | 360 return; |
364 ttl = 16; | 361 ttl = 16; |
365 if (*p == '/') { | 362 if (*p == '/') { |
366 p++; | 363 p++; |
367 get_word_sep(buf1, sizeof(buf1), "/", &p); | 364 get_word_sep(buf1, sizeof(buf1), "/", &p); |
801 struct in_addr ipaddr; | 798 struct in_addr ipaddr; |
802 | 799 |
803 if (*p == '=') { | 800 if (*p == '=') { |
804 p++; | 801 p++; |
805 get_word_sep(buf, sizeof(buf), ";,", &p); | 802 get_word_sep(buf, sizeof(buf), ";,", &p); |
806 if (inet_aton(buf, &ipaddr)) | 803 if (ff_inet_aton(buf, &ipaddr)) |
807 th->destination = ntohl(ipaddr.s_addr); | 804 th->destination = ntohl(ipaddr.s_addr); |
808 } | 805 } |
809 } | 806 } |
810 while (*p != ';' && *p != '\0' && *p != ',') | 807 while (*p != ';' && *p != '\0' && *p != ',') |
811 p++; | 808 p++; |