Revision ac11d562 libavformat/rtsp.c

View differences:

libavformat/rtsp.c
19 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 22
#include "libavutil/base64.h"
26 23
#include "libavutil/avstring.h"
27 24
#include "libavutil/intreadwrite.h"
......
359 356
        if (strcmp(buf1, "IP4") != 0)
360 357
            return;
361 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 360
            return;
364 361
        ttl = 16;
365 362
        if (*p == '/') {
......
803 800
                if (*p == '=') {
804 801
                    p++;
805 802
                    get_word_sep(buf, sizeof(buf), ";,", &p);
806
                    if (inet_aton(buf, &ipaddr))
803
                    if (ff_inet_aton(buf, &ipaddr))
807 804
                        th->destination = ntohl(ipaddr.s_addr);
808 805
                }
809 806
            }

Also available in: Unified diff