diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2008-10-04 04:19:15 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2008-10-04 04:19:15 +0000 |
commit | accc248f28cc71bd5f97c25cb4585dd6ff611242 (patch) | |
tree | 543b86aebad2e8ec62286d0b8d574b8538d43396 /libavformat/rdt.h | |
parent | 5465b0d4740cad41287e305958bd8fd8c8cfbec6 (diff) | |
download | ffmpeg-accc248f28cc71bd5f97c25cb4585dd6ff611242.tar.gz |
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
Diffstat (limited to 'libavformat/rdt.h')
-rw-r--r-- | libavformat/rdt.h | 11 |
1 files changed, 9 insertions, 2 deletions
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 */ |