X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/4d82d5796332e2abe77a17a6bf7e5238bcbe297e..28f1495aaaf9ba4f1412aa006a5d48b7cf0d71db:/lib/rtp.h
diff --git a/lib/rtp.h b/lib/rtp.h
index d0ab1ed..b923fda 100644
--- a/lib/rtp.h
+++ b/lib/rtp.h
@@ -28,6 +28,8 @@
*
* See RFC1889 (now obsoleted
* by RFC3550).
+ *
+ * All values in this structure are big-endian.
*/
struct attribute((packed)) rtp_header {
/** @brief Version, padding, extension and CSRC
@@ -61,6 +63,21 @@ struct attribute((packed)) rtp_header {
uint32_t ssrc;
};
+/** @brief RTP packet header format
+ *
+ * See RFC1889 (now obsoleted
+ * by RFC3550).
+ *
+ * All values in this structure are big-endian.
+ */
+struct attribute((packed)) rtp_extension {
+ /** @brief Profile-defined extension type */
+ uint16_t type;
+
+ /** @brief Length of rest of extension */
+ uint16_t length;
+};
+
#endif /* RTP_H */
/*