Mercurial > libavformat.hg
diff rdt.h @ 3979:e6bf0896a019 libavformat
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).
author | rbultje |
---|---|
date | Sat, 04 Oct 2008 04:19:15 +0000 |
parents | 72efef66f566 |
children | ff78dd8e198a |
line wrap: on
line diff
--- a/rdt.h Sat Oct 04 04:17:59 2008 +0000 +++ b/rdt.h Sat Oct 04 04:19:15 2008 +0000 @@ -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 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 @@ * 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 */