Mercurial > libavformat.hg
comparison rtpdec.h @ 4589:df35708c640a libavformat
Don't (ab)use PKT_FLAG_* in RTP code, since the two have virtually nothing
in common except for this one value. Change was requested by Luca in the
"[FFmpeg-devel] RTP mark bit not passed to parse_packet" thread.
author | rbultje |
---|---|
date | Thu, 26 Feb 2009 14:23:05 +0000 |
parents | 35d76826b641 |
children | 85c7d517d556 |
comparison
equal
deleted
inserted
replaced
4588:e1a5b4f5b9be | 4589:df35708c640a |
---|---|
90 int received_prior; ///< packets received in last interval | 90 int received_prior; ///< packets received in last interval |
91 uint32_t transit; ///< relative transit time for previous packet | 91 uint32_t transit; ///< relative transit time for previous packet |
92 uint32_t jitter; ///< estimated jitter. | 92 uint32_t jitter; ///< estimated jitter. |
93 } RTPStatistics; | 93 } RTPStatistics; |
94 | 94 |
95 #define RTP_FLAG_KEY 0x1 ///< RTP packet contains a keyframe | |
95 /** | 96 /** |
96 * Packet parsing for "private" payloads in the RTP specs. | 97 * Packet parsing for "private" payloads in the RTP specs. |
97 * | 98 * |
98 * @param ctx RTSP demuxer context | 99 * @param ctx RTSP demuxer context |
99 * @param s stream context | 100 * @param s stream context |
100 * @param st stream that this packet belongs to | 101 * @param st stream that this packet belongs to |
101 * @param pkt packet in which to write the parsed data | 102 * @param pkt packet in which to write the parsed data |
102 * @param timestamp pointer in which to write the timestamp of this RTP packet | 103 * @param timestamp pointer in which to write the timestamp of this RTP packet |
103 * @param buf pointer to raw RTP packet data | 104 * @param buf pointer to raw RTP packet data |
104 * @param len length of buf | 105 * @param len length of buf |
105 * @param flags flags from the RTP packet header (PKT_FLAG_*) | 106 * @param flags flags from the RTP packet header (RTP_FLAG_*) |
106 */ | 107 */ |
107 typedef int (*DynamicPayloadPacketHandlerProc) (AVFormatContext *ctx, | 108 typedef int (*DynamicPayloadPacketHandlerProc) (AVFormatContext *ctx, |
108 PayloadContext *s, | 109 PayloadContext *s, |
109 AVStream *st, | 110 AVStream *st, |
110 AVPacket * pkt, | 111 AVPacket * pkt, |