diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2009-02-06 01:37:19 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2009-02-06 01:37:19 +0000 |
commit | 1a45a9f4c06bbbaa322ba744e658491df44f2c2a (patch) | |
tree | 0cdf7e0dd1c3842c2b373821d664844f24a55303 /libavformat/rtp.h | |
parent | 4606a05979f48aea4cef5125cb885405c9903eee (diff) | |
download | ffmpeg-1a45a9f4c06bbbaa322ba744e658491df44f2c2a.tar.gz |
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.
Originally committed as revision 17015 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtp.h')
-rw-r--r-- | libavformat/rtp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rtp.h b/libavformat/rtp.h index 1690be2f49..c66a0c7d71 100644 --- a/libavformat/rtp.h +++ b/libavformat/rtp.h @@ -107,6 +107,7 @@ typedef struct { /** * 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 @@ typedef struct { * @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, |