From 99a1d1915e66e4539971a42d3f7e85da5e027021 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sat, 4 Oct 2008 04:16:44 +0000 Subject: 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 --- libavformat/rtpdec.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavformat/rtpdec.c') diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index 4c33544afb..b08509c284 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -311,6 +311,14 @@ RTPDemuxContext *rtp_parse_open(AVFormatContext *s1, AVStream *st, URLContext *r return s; } +void +rtp_parse_set_dynamic_protocol(RTPDemuxContext *s, PayloadContext *ctx, + RTPDynamicProtocolHandler *handler) +{ + s->dynamic_protocol_context = ctx; + s->parse_packet = handler->parse_packet; +} + static int rtp_parse_mp4_au(RTPDemuxContext *s, const uint8_t *buf) { int au_headers_length, au_header_size, i; -- cgit v1.2.3