rtspdec.c File Reference
#include "libavutil/avstring.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"
#include "avformat.h"
#include "internal.h"
#include "network.h"
#include "os_support.h"
#include "rtsp.h"
#include "rdt.h"
#include "url.h"

Go to the source code of this file.

Functions

static int rtsp_read_play (AVFormatContext *s)
 
static int rtsp_read_pause (AVFormatContext *s)
 
int ff_rtsp_setup_input_streams (AVFormatContext *s, RTSPMessageHeader *reply)
 Get the description of the stream and set up the RTSPStream child objects. More...
 
static int rtsp_probe (AVProbeData *p)
 
static int rtsp_read_header (AVFormatContext *s, AVFormatParameters *ap)
 
int ff_rtsp_tcp_read_packet (AVFormatContext *s, RTSPStream **prtsp_st, uint8_t *buf, int buf_size)
 Receive one RTP packet from an TCP interleaved RTSP stream. More...
 
static int resetup_tcp (AVFormatContext *s)
 
static int rtsp_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int rtsp_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
 
static int rtsp_read_close (AVFormatContext *s)
 

Variables

const AVClass rtsp_demuxer_class
 
AVInputFormat ff_rtsp_demuxer
 

Function Documentation

int ff_rtsp_setup_input_streams ( AVFormatContext s,
RTSPMessageHeader reply 
)

Get the description of the stream and set up the RTSPStream child objects.

The Require: attribute is needed for proper streaming from Realmedia servers.

Definition at line 109 of file rtspdec.c.

int ff_rtsp_tcp_read_packet ( AVFormatContext s,
RTSPStream **  prtsp_st,
uint8_t *  buf,
int  buf_size 
)

Receive one RTP packet from an TCP interleaved RTSP stream.

Definition at line 181 of file rtspdec.c.

static int resetup_tcp ( AVFormatContext s)
static

Definition at line 231 of file rtspdec.c.

Referenced by rtsp_read_packet().

static int rtsp_probe ( AVProbeData p)
static

Definition at line 146 of file rtspdec.c.

static int rtsp_read_close ( AVFormatContext s)
static

Definition at line 378 of file rtspdec.c.

static int rtsp_read_header ( AVFormatContext s,
AVFormatParameters ap 
)
static

Definition at line 153 of file rtspdec.c.

static int rtsp_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 244 of file rtspdec.c.

static int rtsp_read_pause ( AVFormatContext s)
static

Definition at line 92 of file rtspdec.c.

Referenced by rtsp_read_packet(), and rtsp_read_seek().

static int rtsp_read_play ( AVFormatContext s)
static

Definition at line 34 of file rtspdec.c.

Referenced by rtsp_read_header(), rtsp_read_packet(), and rtsp_read_seek().

static int rtsp_read_seek ( AVFormatContext s,
int  stream_index,
int64_t  timestamp,
int  flags 
)
static

Definition at line 352 of file rtspdec.c.

Variable Documentation

AVInputFormat ff_rtsp_demuxer
Initial value:
= {
.name = "rtsp",
.long_name = NULL_IF_CONFIG_SMALL("RTSP input format"),
.priv_data_size = sizeof(RTSPState),
.read_play = rtsp_read_play,
.read_pause = rtsp_read_pause,
.priv_class = &rtsp_demuxer_class,
}
static int rtsp_read_close(AVFormatContext *s)
Definition: rtspdec.c:378
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:148
static int rtsp_probe(AVProbeData *p)
Definition: rtspdec.c:146
static int rtsp_read_pause(AVFormatContext *s)
Definition: rtspdec.c:92
static int rtsp_read_header(AVFormatContext *s, AVFormatParameters *ap)
Definition: rtspdec.c:153
static int rtsp_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rtspdec.c:244
static int read_header(FFV1Context *f)
Definition: ffv1.c:1513
static int flags
Definition: log.c:34
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:140
static int rtsp_read_play(AVFormatContext *s)
Definition: rtspdec.c:34
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:191
static int read_probe(AVProbeData *p)
Definition: img2.c:185
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: libcdio.c:109
struct RTSPState RTSPState
Private data for the RTSP demuxer.
const AVClass rtsp_demuxer_class
Definition: rtspdec.c:392
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:368
static int rtsp_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: rtspdec.c:352

Definition at line 399 of file rtspdec.c.

const AVClass rtsp_demuxer_class
Initial value:
= {
.class_name = "RTSP demuxer",
.item_name = av_default_item_name,
.option = ff_rtsp_options,
}
const AVOption ff_rtsp_options[]
Definition: rtsp.c:74
LIBAVUTIL_VERSION_INT
Definition: eval.c:50
av_default_item_name
Definition: dnxhdenc.c:43

Definition at line 392 of file rtspdec.c.