diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2008-10-04 04:15:06 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2008-10-04 04:15:06 +0000 |
commit | 9b932b8ac0c63cf52642dbe4e3953a312e6cf900 (patch) | |
tree | 67591ba263b0fb8d56ffc32a6dd4257df0c266fc /libavformat/rtpdec.c | |
parent | ed0aacc76eccf2b523352f0c74107e2f6ba9cf93 (diff) | |
download | ffmpeg-9b932b8ac0c63cf52642dbe4e3953a312e6cf900.tar.gz |
Change function prototype of RTPDynamicPayloadHandler.parse_packet() to
not use RTPDemuxContext, but rather take a pointer to the payload context
directly. This allows using payload handlers regardless over the transport
over which they were sent, and prepares for the introduction of a future
RDTDemuxContext. See discussion in "RDT/Realmedia patches #2" thread on ML.
Originally committed as revision 15541 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtpdec.c')
-rw-r--r-- | libavformat/rtpdec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index 119682041d..4c33544afb 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -399,7 +399,8 @@ int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt, /* return the next packets, if any */ if(s->st && s->parse_packet) { timestamp= 0; ///< Should not be used if buf is NULL, but should be set to the timestamp of the packet returned.... - rv= s->parse_packet(s, pkt, ×tamp, NULL, 0, flags); + rv= s->parse_packet(s->dynamic_protocol_context, + s->st, pkt, ×tamp, NULL, 0, flags); finalize_packet(s, pkt, timestamp); return rv; } else { @@ -463,7 +464,8 @@ int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt, return 1; } } else if (s->parse_packet) { - rv = s->parse_packet(s, pkt, ×tamp, buf, len, flags); + rv = s->parse_packet(s->dynamic_protocol_context, + s->st, pkt, ×tamp, buf, len, flags); } else { // at this point, the RTP header has been stripped; This is ASSUMING that there is only 1 CSRC, which in't wise. switch(st->codec->codec_id) { |