diff rtpdec.c @ 3977:1f1c4535f421 libavformat

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.
author rbultje
date Sat, 04 Oct 2008 04:16:44 +0000
parents 64056a0c38ce
children af2c0aef892b
line wrap: on
line diff
--- a/rtpdec.c	Sat Oct 04 04:15:06 2008 +0000
+++ b/rtpdec.c	Sat Oct 04 04:16:44 2008 +0000
@@ -311,6 +311,14 @@
     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;