int rtp_set_remote_url(URLContext *h, const char *uri)

{

    RTPContext *s = h->priv_data;

    char hostname[256];

    int port;



    char buf[1024];

    char path[1024];

    

    url_split(NULL, 0, hostname, sizeof(hostname), &port, 

              path, sizeof(path), uri);



    snprintf(buf, sizeof(buf), "udp://%s:%d%s", hostname, port, path);

    udp_set_remote_url(s->rtp_hd, buf);



    snprintf(buf, sizeof(buf), "udp://%s:%d%s", hostname, port + 1, path);

    udp_set_remote_url(s->rtcp_hd, buf);

    return 0;

}

int rtp_set_remote_url(URLContext *h, const char *uri)

{

    RTPContext *s = h->priv_data;

    char hostname[256];

    int port;



    char buf[1024];

    char path[1024];

    

    url_split(NULL, 0, hostname, sizeof(hostname), &port, 

              path, sizeof(path), uri);



    snprintf(buf, sizeof(buf), "udp:

    udp_set_remote_url(s->rtp_hd, buf);



    snprintf(buf, sizeof(buf), "udp:

    udp_set_remote_url(s->rtcp_hd, buf);

    return 0;

}

int FUNC_0(URLContext *VAR_0, const char *VAR_1)

{

    RTPContext *s = VAR_0->priv_data;

    char VAR_2[256];

    int VAR_3;



    char VAR_4[1024];

    char VAR_5[1024];

    

    url_split(NULL, 0, VAR_2, sizeof(VAR_2), &VAR_3, 

              VAR_5, sizeof(VAR_5), VAR_1);



    snprintf(VAR_4, sizeof(VAR_4), "udp:

    udp_set_remote_url(s->rtp_hd, VAR_4);



    snprintf(VAR_4, sizeof(VAR_4), "udp:

    udp_set_remote_url(s->rtcp_hd, VAR_4);

    return 0;

}

int FUNC_0(URLContext *VAR_0, const char *VAR_1)
{ RTPContext *s = VAR_0->priv_data; char VAR_2[256]; int VAR_3; char VAR_4[1024]; char VAR_5[1024]; url_split(NULL, 0, VAR_2, sizeof(VAR_2), &VAR_3,
VAR_5, sizeof(VAR_5), VAR_1); snprintf(VAR_4, sizeof(VAR_4), "udp:
udp_set_remote_url(s->rtp_hd, VAR_4); snprintf(VAR_4, sizeof(VAR_4), "udp:
udp_set_remote_url(s->rtcp_hd, VAR_4); return 0; }