diff 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
line wrap: on
line diff
--- a/rtpdec.h	Thu Feb 26 14:15:41 2009 +0000
+++ b/rtpdec.h	Thu Feb 26 14:23:05 2009 +0000
@@ -92,6 +92,7 @@
     uint32_t jitter;            ///< estimated jitter.
 } RTPStatistics;
 
+#define RTP_FLAG_KEY    0x1 ///< RTP packet contains a keyframe
 /**
  * Packet parsing for "private" payloads in the RTP specs.
  *
@@ -102,7 +103,7 @@
  * @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_*)
+ * @param flags flags from the RTP packet header (RTP_FLAG_*)
  */
 typedef int (*DynamicPayloadPacketHandlerProc) (AVFormatContext *ctx,
                                                 PayloadContext *s,