Mercurial > libavformat.hg
diff rtp_h264.c @ 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 | 49c1d3b27727 |
children | 80f21f72d7d6 |
line wrap: on
line diff
--- a/rtp_h264.c Thu Feb 05 22:34:55 2009 +0000 +++ b/rtp_h264.c Fri Feb 06 01:37:19 2009 +0000 @@ -159,7 +159,8 @@ } // return 0 on packet, no more left, 1 on packet, 1 on partial packet... -static int h264_handle_packet(PayloadContext *data, +static int h264_handle_packet(AVFormatContext *ctx, + PayloadContext *data, AVStream *st, AVPacket * pkt, uint32_t * timestamp,