Mercurial > libavformat.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
4386:3dbd7fa2c2af | 4387:5c42816e12c6 |
---|---|
157 av_log(NULL, AV_LOG_DEBUG, "H.264/RTP Extradata set to %p (size: %d)!", codec->extradata, codec->extradata_size); | 157 av_log(NULL, AV_LOG_DEBUG, "H.264/RTP Extradata set to %p (size: %d)!", codec->extradata, codec->extradata_size); |
158 } | 158 } |
159 } | 159 } |
160 | 160 |
161 // return 0 on packet, no more left, 1 on packet, 1 on partial packet... | 161 // return 0 on packet, no more left, 1 on packet, 1 on partial packet... |
162 static int h264_handle_packet(PayloadContext *data, | 162 static int h264_handle_packet(AVFormatContext *ctx, |
163 PayloadContext *data, | |
163 AVStream *st, | 164 AVStream *st, |
164 AVPacket * pkt, | 165 AVPacket * pkt, |
165 uint32_t * timestamp, | 166 uint32_t * timestamp, |
166 const uint8_t * buf, | 167 const uint8_t * buf, |
167 int len, int flags) | 168 int len, int flags) |