Revision 4ec153bb libavformat/rtpproto.c

View differences:

libavformat/rtpproto.c
27 27
#include "libavutil/parseutils.h"
28 28
#include "libavutil/avstring.h"
29 29
#include "avformat.h"
30
#include "avio_internal.h"
30 31
#include "rtpdec.h"
31 32

  
32 33
#include <unistd.h>
......
71 72
                 path, sizeof(path), uri);
72 73

  
73 74
    ff_url_join(buf, sizeof(buf), "udp", NULL, hostname, port, "%s", path);
74
    udp_set_remote_url(s->rtp_hd, buf);
75
    ff_udp_set_remote_url(s->rtp_hd, buf);
75 76

  
76 77
    ff_url_join(buf, sizeof(buf), "udp", NULL, hostname, port + 1, "%s", path);
77
    udp_set_remote_url(s->rtcp_hd, buf);
78
    ff_udp_set_remote_url(s->rtcp_hd, buf);
78 79
    return 0;
79 80
}
80 81

  
......
191 192
    if (url_open(&s->rtp_hd, buf, flags) < 0)
192 193
        goto fail;
193 194
    if (local_rtp_port>=0 && local_rtcp_port<0)
194
        local_rtcp_port = udp_get_local_port(s->rtp_hd) + 1;
195
        local_rtcp_port = ff_udp_get_local_port(s->rtp_hd) + 1;
195 196

  
196 197
    build_udp_url(buf, sizeof(buf),
197 198
                  hostname, rtcp_port, local_rtcp_port, ttl, max_packet_size,
......
326 327
int rtp_get_local_rtp_port(URLContext *h)
327 328
{
328 329
    RTPContext *s = h->priv_data;
329
    return udp_get_local_port(s->rtp_hd);
330
    return ff_udp_get_local_port(s->rtp_hd);
330 331
}
331 332

  
332 333
/**
......
338 339
int rtp_get_local_rtcp_port(URLContext *h)
339 340
{
340 341
    RTPContext *s = h->priv_data;
341
    return udp_get_local_port(s->rtcp_hd);
342
    return ff_udp_get_local_port(s->rtcp_hd);
342 343
}
343 344

  
344 345
static int rtp_get_file_handle(URLContext *h)

Also available in: Unified diff