diff options
author | David Conrad <lessen42@gmail.com> | 2010-03-07 19:48:59 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2010-03-07 19:48:59 +0000 |
commit | ac11d562e51a7764abc20447303ce95225d07a0b (patch) | |
tree | a56482abec9b273fdb94c0f171faec90777eacb4 /libavformat/rtsp.c | |
parent | d1be963568824306ac8f826a89df98761f89c0e2 (diff) | |
download | ffmpeg-ac11d562e51a7764abc20447303ce95225d07a0b.tar.gz |
Localize the #define _SVID_SOURCE needed for inet_aton() to os_support.c
Originally committed as revision 22284 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index c7c6fc3422..60f13275e5 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -19,9 +19,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -/* needed by inet_aton() */ -#define _SVID_SOURCE - #include "libavutil/base64.h" #include "libavutil/avstring.h" #include "libavutil/intreadwrite.h" @@ -359,7 +356,7 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1, if (strcmp(buf1, "IP4") != 0) return; get_word_sep(buf1, sizeof(buf1), "/", &p); - if (inet_aton(buf1, &sdp_ip) == 0) + if (ff_inet_aton(buf1, &sdp_ip) == 0) return; ttl = 16; if (*p == '/') { @@ -803,7 +800,7 @@ static void rtsp_parse_transport(RTSPMessageHeader *reply, const char *p) if (*p == '=') { p++; get_word_sep(buf, sizeof(buf), ";,", &p); - if (inet_aton(buf, &ipaddr)) + if (ff_inet_aton(buf, &ipaddr)) th->destination = ntohl(ipaddr.s_addr); } } |