Go to the source code of this file.
|
#define | POLL_TIMEOUT_MS 100 |
|
#define | READ_PACKET_TIMEOUT_S 10 |
|
#define | MAX_TIMEOUTS READ_PACKET_TIMEOUT_S * 1000 / POLL_TIMEOUT_MS |
|
#define | SDP_MAX_SIZE 16384 |
|
#define | RECVBUF_SIZE 10 * RTP_MAX_PACKET_LENGTH |
|
#define | DEFAULT_REORDERING_DELAY 100000 |
|
#define | OFFSET(x) offsetof(RTSPState, x) |
|
#define | DEC AV_OPT_FLAG_DECODING_PARAM |
|
#define | ENC AV_OPT_FLAG_ENCODING_PARAM |
|
#define | RTSP_FLAG_OPTS(name, longname) |
|
#define | RTSP_MEDIATYPE_OPTS(name, longname) |
|
#define | RTSP_REORDERING_OPTS() { "reorder_queue_size", "set number of packets to buffer for handling of reordered packets", OFFSET(reordering_queue_size), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, DEC } |
|
|
static void | get_word_until_chars (char *buf, int buf_size, const char *sep, const char **pp) |
|
static void | get_word_sep (char *buf, int buf_size, const char *sep, const char **pp) |
|
static void | get_word (char *buf, int buf_size, const char **pp) |
|
static void | rtsp_parse_range_npt (const char *p, int64_t *start, int64_t *end) |
| Parse a string p in the form of Range:npt=xx-xx, and determine the start and end time.
|
|
static int | get_sockaddr (const char *buf, struct sockaddr_storage *sock) |
|
void | ff_rtsp_undo_setup (AVFormatContext *s, int send_packets) |
| Undo the effect of ff_rtsp_make_setup_request, close the transport_priv and rtp_handle fields.
|
|
void | ff_rtsp_close_streams (AVFormatContext *s) |
| Close and free all streams within the RTSP (de)muxer.
|
|
int | ff_rtsp_open_transport_ctx (AVFormatContext *s, RTSPStream *rtsp_st) |
| Open RTSP transport context.
|
|
#define POLL_TIMEOUT_MS 100 |
#define READ_PACKET_TIMEOUT_S 10 |
#define SDP_MAX_SIZE 16384 |
#define DEFAULT_REORDERING_DELAY 100000 |
#define RTSP_FLAG_OPTS |
( |
|
name, |
|
|
|
longname |
|
) |
| |
Value:
Definition at line 66 of file rtsp.c.
#define RTSP_MEDIATYPE_OPTS |
( |
|
name, |
|
|
|
longname |
|
) |
| |
Value:
Definition at line 70 of file rtsp.c.
#define RTSP_REORDERING_OPTS |
( |
| ) |
{ "reorder_queue_size", "set number of packets to buffer for handling of reordered packets", OFFSET(reordering_queue_size), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, DEC } |
static void get_word_until_chars |
( |
char * |
buf, |
|
|
int |
buf_size, |
|
|
const char * |
sep, |
|
|
const char ** |
pp |
|
) |
| |
|
static |
static void get_word_sep |
( |
char * |
buf, |
|
|
int |
buf_size, |
|
|
const char * |
sep, |
|
|
const char ** |
pp |
|
) |
| |
|
static |
static void get_word |
( |
char * |
buf, |
|
|
int |
buf_size, |
|
|
const char ** |
pp |
|
) |
| |
|
static |
static void rtsp_parse_range_npt |
( |
const char * |
p, |
|
|
int64_t * |
start, |
|
|
int64_t * |
end |
|
) |
| |
|
static |
Parse a string p in the form of Range:npt=xx-xx, and determine the start and end time.
Used for seeking in the rtp stream.
Definition at line 151 of file rtsp.c.
Initial value:= {
{
"initial_pause",
"do not start playing the stream immediately",
OFFSET(initial_pause),
AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1,
DEC },
{
"rtsp_transport",
"set RTSP transport protocols",
OFFSET(lower_transport_mask),
AV_OPT_TYPE_FLAGS, {.i64 = 0}, INT_MIN, INT_MAX,
DEC|
ENC,
"rtsp_transport" },
{
"prefer_tcp",
"try RTP via TCP first, if available", 0,
AV_OPT_TYPE_CONST, {.i64 =
RTSP_FLAG_PREFER_TCP}, 0, 0,
DEC|
ENC,
"rtsp_flags" },
{
"timeout",
"set maximum timeout (in seconds) to wait for incoming connections (-1 is infinite, imply flag listen)",
OFFSET(initial_timeout),
AV_OPT_TYPE_INT, {.i64 = -1}, INT_MIN, INT_MAX,
DEC },
{
"stimeout",
"set timeout (in microseconds) of socket TCP I/O operations",
OFFSET(stimeout),
AV_OPT_TYPE_INT, {.i64 = 0}, INT_MIN, INT_MAX,
DEC },
}
Definition at line 80 of file rtsp.c.
Initial value:
Definition at line 101 of file rtsp.c.
Initial value:
Definition at line 110 of file rtsp.c.