Mercurial > libavformat.hg
diff rtp.h @ 4387:5c42816e12c6 libavformat
Add "AVFormatContext *ctx" (that being the RTSP demuxer's) as first argument
to the parse_packet() function pointer in RTPDynamicProtocolHandlers. This
allows these functions to peek back and retrieve values from the demuxer's
context (or RTSPState). The ASF/RTP payload parser will use this to be able
to parse SDP values (which occur even before the payload ID is given), store
them in the RTSPState and then retrieve them while parsing payload data. See
"[PATCH] RTSP-MS 13/15: add RTSP demuxer AVFormatContext to parse_packet()
function pointer (was: transport context)" mailinglist thread.
author | rbultje |
---|---|
date | Fri, 06 Feb 2009 01:37:19 +0000 |
parents | 1b695f013cd3 |
children | 80f21f72d7d6 |
line wrap: on
line diff
--- a/rtp.h Thu Feb 05 22:34:55 2009 +0000 +++ b/rtp.h Fri Feb 06 01:37:19 2009 +0000 @@ -107,6 +107,7 @@ /** * Packet parsing for "private" payloads in the RTP specs. * + * @param ctx RTSP demuxer context * @param s stream context * @param st stream that this packet belongs to * @param pkt packet in which to write the parsed data @@ -115,7 +116,8 @@ * @param len length of buf * @param flags flags from the RTP packet header (PKT_FLAG_*) */ -typedef int (*DynamicPayloadPacketHandlerProc) (PayloadContext *s, +typedef int (*DynamicPayloadPacketHandlerProc) (AVFormatContext *ctx, + PayloadContext *s, AVStream *st, AVPacket * pkt, uint32_t *timestamp,