summaryrefslogtreecommitdiff
path: root/libavformat/rtp_internal.h
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2008-10-04 04:15:06 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2008-10-04 04:15:06 +0000
commit9b932b8ac0c63cf52642dbe4e3953a312e6cf900 (patch)
tree67591ba263b0fb8d56ffc32a6dd4257df0c266fc /libavformat/rtp_internal.h
parented0aacc76eccf2b523352f0c74107e2f6ba9cf93 (diff)
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/rtp_internal.h')
-rw-r--r--libavformat/rtp_internal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rtp_internal.h b/libavformat/rtp_internal.h
index c1d9001a17..448d1fabe9 100644
--- a/libavformat/rtp_internal.h
+++ b/libavformat/rtp_internal.h
@@ -46,13 +46,15 @@ typedef struct PayloadContext PayloadContext;
* Packet parsing for "private" payloads in the RTP specs.
*
* @param s stream context
+ * @param st stream that this packet belongs to
* @param pkt packet in which to write the parsed data
* @param timestamp pointer in which to write the timestamp of this RTP packet
* @param buf pointer to raw RTP packet data
* @param len length of buf
* @param flags flags from the RTP packet header (PKT_FLAG_*)
*/
-typedef int (*DynamicPayloadPacketHandlerProc) (struct RTPDemuxContext * s,
+typedef int (*DynamicPayloadPacketHandlerProc) (PayloadContext *s,
+ AVStream *st,
AVPacket * pkt,
uint32_t *timestamp,
const uint8_t * buf,