diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2008-01-18 20:48:32 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2008-01-18 20:48:32 +0000 |
commit | f841a0fca1977ed9d24537b3c7b376def5ca1a73 (patch) | |
tree | 2e7543cd5082ddf6dfa43c8af6095084ba397641 /libavformat/rtp_internal.h | |
parent | e2d3e82dfd607ee1db51076e16d8ddc3140ae753 (diff) | |
download | ffmpeg-f841a0fca1977ed9d24537b3c7b376def5ca1a73.tar.gz |
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)".
Originally committed as revision 11557 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtp_internal.h')
-rw-r--r-- | libavformat/rtp_internal.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libavformat/rtp_internal.h b/libavformat/rtp_internal.h index fefbaf5504..e9d6cb3905 100644 --- a/libavformat/rtp_internal.h +++ b/libavformat/rtp_internal.h @@ -41,12 +41,21 @@ typedef struct { 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 |