From accc248f28cc71bd5f97c25cb4585dd6ff611242 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sat, 4 Oct 2008 04:19:15 +0000 Subject: Implement RDTDemuxContext, which contains RDT-specific data (similar to RTPDemuxContext for RTP) for these streams where the transport protocol is RDT (as served by Realmedia servers). Originally committed as revision 15544 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rdt.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'libavformat/rdt.h') diff --git a/libavformat/rdt.h b/libavformat/rdt.h index 2fe11873ac..9f5d1c9c51 100644 --- a/libavformat/rdt.h +++ b/libavformat/rdt.h @@ -22,6 +22,13 @@ #ifndef AVFORMAT_RDT_H #define AVFORMAT_RDT_H +typedef struct RDTDemuxContext RDTDemuxContext; + +RDTDemuxContext *ff_rdt_parse_open(AVFormatContext *ic, AVStream *st, + void *priv_data, + RTPDynamicProtocolHandler *handler); +void ff_rdt_parse_close(RDTDemuxContext *s); + /** * Calculate the response (RealChallenge2 in the RTSP header) to the * challenge (RealChallenge1 in the RTSP header from the Real/Helix @@ -53,7 +60,7 @@ void av_register_rdt_dynamic_payload_handlers(void); void ff_rdt_subscribe_rule(char *cmd, int size, int stream_nr, int rule_nr); // FIXME this will be removed ASAP -void ff_rdt_subscribe_rule2(RTPDemuxContext *s, char *cmd, int size, +void ff_rdt_subscribe_rule2(RDTDemuxContext *s, char *cmd, int size, int stream_nr, int rule_nr); /** @@ -74,7 +81,7 @@ int ff_rdt_parse_header(const uint8_t *buf, int len, * Parse RDT-style packet data (header + media data). * Usage similar to rtp_parse_packet(). */ -int ff_rdt_parse_packet(RTPDemuxContext *s, AVPacket *pkt, +int ff_rdt_parse_packet(RDTDemuxContext *s, AVPacket *pkt, const uint8_t *buf, int len); #endif /* AVFORMAT_RDT_H */ -- cgit v1.2.3