summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-12-11 19:57:18 +0200
committerMartin Storsjö <martin@martin.st>2012-12-12 12:18:28 +0200
commitd6ec745246fc39eb885fde1b296026467becbd33 (patch)
treec80103f91dce6ad61723ccfb411e122e69ed4c46 /libavformat/rtpdec.h
parente66d448c7564424e958332212083beecbc6e1868 (diff)
rtpdec: Improve some comments
The previous comment about the buffer was wildly inaccurate and misleading. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec.h')
-rw-r--r--libavformat/rtpdec.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/rtpdec.h b/libavformat/rtpdec.h
index f643fa20a9..4a920a90b5 100644
--- a/libavformat/rtpdec.h
+++ b/libavformat/rtpdec.h
@@ -94,7 +94,8 @@ typedef struct RTPStatistics {
* @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 timestamp pointer to the RTP timestamp of the input data, can be
+ * updated by the function if returning older, buffered data
* @param buf pointer to raw RTP packet data
* @param len length of buf
* @param flags flags from the RTP packet header (RTP_FLAG_*)
@@ -176,7 +177,7 @@ struct RTPDemuxContext {
unsigned int packet_count; // TODO: move into statistics (outgoing)
unsigned int octet_count; // TODO: move into statistics (outgoing)
unsigned int last_octet_count; // TODO: move into statistics (outgoing)
- /* buffer for output */
+ /* buffer for partially parsed packets */
uint8_t buf[RTP_MAX_PACKET_LENGTH];
/* dynamic payload stuff */