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
This commit is contained in:
Ronald S. Bultje
2008-10-04 04:15:06 +00:00
parent ed0aacc76e
commit 9b932b8ac0
4 changed files with 15 additions and 12 deletions

View File

@@ -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,