diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2008-10-04 04:16:44 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2008-10-04 04:16:44 +0000 |
commit | 99a1d1915e66e4539971a42d3f7e85da5e027021 (patch) | |
tree | 8d9c4ff98c92135b8ea8bc24604e1e05bc9030c2 /libavformat/rtp.h | |
parent | 9b932b8ac0c63cf52642dbe4e3953a312e6cf900 (diff) | |
download | ffmpeg-99a1d1915e66e4539971a42d3f7e85da5e027021.tar.gz |
Remove access into RTPDemuxContext in rtsp.c, which allows making it opaque
(and thus preparing for the introduction of RDTDemuxContext) in a next patch.
See discussion in "RDT/Realmedia patches #2" thread on ML.
Originally committed as revision 15542 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtp.h')
-rw-r--r-- | libavformat/rtp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/rtp.h b/libavformat/rtp.h index 0eb95653cb..4de5919c78 100644 --- a/libavformat/rtp.h +++ b/libavformat/rtp.h @@ -24,6 +24,9 @@ #include "libavcodec/avcodec.h" #include "avformat.h" +typedef struct PayloadContext PayloadContext; +typedef struct RTPDynamicProtocolHandler_s RTPDynamicProtocolHandler; + #define RTP_MIN_PACKET_LENGTH 12 #define RTP_MAX_PACKET_LENGTH 1500 /* XXX: suppress this define */ @@ -35,6 +38,8 @@ int rtp_get_payload_type(AVCodecContext *codec); typedef struct RTPDemuxContext RTPDemuxContext; typedef struct rtp_payload_data_s rtp_payload_data_s; RTPDemuxContext *rtp_parse_open(AVFormatContext *s1, AVStream *st, URLContext *rtpc, int payload_type, rtp_payload_data_s *rtp_payload_data); +void rtp_parse_set_dynamic_protocol(RTPDemuxContext *s, PayloadContext *ctx, + RTPDynamicProtocolHandler *handler); int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt, const uint8_t *buf, int len); void rtp_parse_close(RTPDemuxContext *s); |