Mercurial > libavformat.hg
diff rtp_internal.h @ 2941:6da0564c9d02 libavformat
Add a flags field to the RTPDynamicPayloadPacketHandlerProc (PKT_FLAG_*).
This can be used later by RDT to get the flags from the RTP packet and
use that for the RealMedia packet (such as whether this RTP packet
represents a keyframe or not). For discussion, see "[PATCH] Realmedia
/ RTSP (RDT)".
| author | rbultje |
|---|---|
| date | Fri, 18 Jan 2008 20:48:32 +0000 |
| parents | b252e318023a |
| children | 6f61c3b36632 |
line wrap: on
line diff
--- a/rtp_internal.h Thu Jan 17 20:48:07 2008 +0000 +++ b/rtp_internal.h Fri Jan 18 20:48:32 2008 +0000 @@ -41,12 +41,21 @@ uint32_t jitter; ///< estimated jitter. } RTPStatistics; - +/** + * Packet parsing for "private" payloads in the RTP specs. + * + * @param s stream context + * @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, AVPacket * pkt, uint32_t *timestamp, const uint8_t * buf, - int len); + int len, int flags); typedef struct RTPDynamicProtocolHandler_s { // fields from AVRtpDynamicPayloadType_s
