libavformat/rtsp.c File Reference
#include "libavutil/base64.h"
#include "libavutil/avstring.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/parseutils.h"
#include "libavutil/random_seed.h"
#include "libavutil/dict.h"
#include "avformat.h"
#include "avio_internal.h"
#include <sys/time.h>
#include <strings.h>
#include "internal.h"
#include "network.h"
#include "os_support.h"
#include "http.h"
#include "rtsp.h"
#include "rtpdec.h"
#include "rdt.h"
#include "rtpdec_formats.h"
#include "rtpenc_chain.h"
#include "url.h"
Go to the source code of this file.
|
Defines |
#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 |
Functions |
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) |
| 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.
|
static int | rtsp_open_transport_ctx (AVFormatContext *s, RTSPStream *rtsp_st) |
Define Documentation
#define MAX_TIMEOUTS READ_PACKET_TIMEOUT_S * 1000 / POLL_TIMEOUT_MS |
#define POLL_TIMEOUT_MS 100 |
#define READ_PACKET_TIMEOUT_S 10 |
#define RECVBUF_SIZE 10 * RTP_MAX_PACKET_LENGTH |
#define SDP_MAX_SIZE 16384 |
Function Documentation
static int get_sockaddr |
( |
const char * |
buf, |
|
|
struct sockaddr_storage * |
sock | |
|
) |
| | [static] |
static void get_word |
( |
char * |
buf, |
|
|
int |
buf_size, |
|
|
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_until_chars |
( |
char * |
buf, |
|
|
int |
buf_size, |
|
|
const char * |
sep, |
|
|
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 93 of file rtsp.c.