Revision 57b5555c libavformat/rtpproto.c

View differences:

libavformat/rtpproto.c
67 67
    url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &port,
68 68
              path, sizeof(path), uri);
69 69

  
70
    snprintf(buf, sizeof(buf), "udp://%s:%d%s", hostname, port, path);
70
    ff_url_join(buf, sizeof(buf), "udp", NULL, hostname, port, "%s", path);
71 71
    udp_set_remote_url(s->rtp_hd, buf);
72 72

  
73
    snprintf(buf, sizeof(buf), "udp://%s:%d%s", hostname, port + 1, path);
73
    ff_url_join(buf, sizeof(buf), "udp", NULL, hostname, port + 1, "%s", path);
74 74
    udp_set_remote_url(s->rtcp_hd, buf);
75 75
    return 0;
76 76
}
......
101 101
                          int local_port, int ttl,
102 102
                          int max_packet_size)
103 103
{
104
    snprintf(buf, buf_size, "udp://%s:%d", hostname, port);
104
    ff_url_join(buf, buf_size, "udp", NULL, hostname, port, NULL);
105 105
    if (local_port >= 0)
106 106
        url_add_option(buf, buf_size, "localport=%d", local_port);
107 107
    if (ttl >= 0)

Also available in: Unified diff