FFmpeg
Functions
rtpproto.h File Reference
#include "url.h"

Go to the source code of this file.

Functions

int ff_rtp_set_remote_url (URLContext *h, const char *uri)
 If no filename is given to av_open_input_file because you want to get the local port first, then you must call this function to set the remote server address. More...
 
int ff_rtp_get_local_rtp_port (URLContext *h)
 Return the local rtp port used by the RTP connection. More...
 

Function Documentation

◆ ff_rtp_set_remote_url()

int ff_rtp_set_remote_url ( URLContext h,
const char *  uri 
)

If no filename is given to av_open_input_file because you want to get the local port first, then you must call this function to set the remote server address.

Parameters
hmedia file context
uriof the remote server
Returns
zero if no error.

Definition at line 104 of file rtpproto.c.

◆ ff_rtp_get_local_rtp_port()

int ff_rtp_get_local_rtp_port ( URLContext h)

Return the local rtp port used by the RTP connection.

Parameters
hmedia file context
Returns
the local port number

Definition at line 538 of file rtpproto.c.

Referenced by rtsp_read_setup().