X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/132a5a4a47f9dbc7c52ee15234d70258c59ccf8e..7f7c38193f1f45a70710bc922d110bf08022c175:/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 */ /*