Commit 0526c6f7 authored by Martin Storsjö's avatar Martin Storsjö

rtsp: Split out the RTSP demuxer functions to a separate, new file

Originally committed as revision 25601 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent c2688f3a
......@@ -243,7 +243,7 @@ OBJS-$(CONFIG_RTPDEC) += rdt.o \
rtpdec_svq3.o \
rtpdec_vp8.o \
rtpdec_xiph.o
OBJS-$(CONFIG_RTSP_DEMUXER) += rtsp.o httpauth.o
OBJS-$(CONFIG_RTSP_DEMUXER) += rtsp.o rtspdec.o httpauth.o
OBJS-$(CONFIG_RTSP_MUXER) += rtsp.o rtspenc.o httpauth.o \
rtpenc_chain.o
OBJS-$(CONFIG_SAP_DEMUXER) += sapdec.o
......
This diff is collapsed.
......@@ -468,10 +468,34 @@ void ff_rtsp_close_streams(AVFormatContext *s);
*/
void ff_rtsp_close_connections(AVFormatContext *rt);
/**
* Get the description of the stream and set up the RTSPStream child
* objects.
*/
int ff_rtsp_setup_input_streams(AVFormatContext *s, RTSPMessageHeader *reply);
/**
* Announce the stream to the server and set up the RTSPStream child
* objects for each media stream.
*/
int ff_rtsp_setup_output_streams(AVFormatContext *s, const char *addr);
/**
* Parse a SDP description of streams by populating an RTSPState struct
* within the AVFormatContext.
*/
int ff_sdp_parse(AVFormatContext *s, const char *content);
/**
* Receive one RTP packet from an TCP interleaved RTSP stream.
*/
int ff_rtsp_tcp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
uint8_t *buf, int buf_size);
/**
* Receive one packet from the RTSPStreams set up in the AVFormatContext
* (which should contain a RTSPState struct as priv_data).
*/
int ff_rtsp_fetch_packet(AVFormatContext *s, AVPacket *pkt);
#endif /* AVFORMAT_RTSP_H */
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment