fix issue where rtp stack was not paying attn to header extensions

This commit is contained in:
Anthony Minessale
2012-12-13 19:49:02 -06:00
parent ab886cad30
commit d301451782
3 changed files with 47 additions and 15 deletions
+1
View File
@@ -42,6 +42,7 @@
SWITCH_BEGIN_EXTERN_C
#define SWITCH_RTP_MAX_BUF_LEN 16384
#define SWITCH_RTCP_MAX_BUF_LEN 16384
#define SWITCH_RTP_MAX_BUF_LEN_WORDS 4094 /* (max / 4) - 2 */
#define SWITCH_RTP_MAX_CRYPTO_LEN 64
#define SWITCH_RTP_KEY_LEN 30
#define SWITCH_RTP_CRYPTO_KEY_32 "AES_CM_128_HMAC_SHA1_32"
+10
View File
@@ -767,6 +767,11 @@ typedef struct {
unsigned ssrc:32; /* synchronization source */
} switch_rtp_hdr_t;
typedef struct {
unsigned length:16; /* length */
unsigned profile:16; /* defined by profile */
} switch_rtp_hdr_ext_t;
#else /* BIG_ENDIAN */
typedef struct {
@@ -781,6 +786,11 @@ typedef struct {
unsigned ssrc:32; /* synchronization source */
} switch_rtp_hdr_t;
typedef struct {
unsigned profile:16; /* defined by profile */
unsigned length:16; /* length */
} switch_rtp_hdr_ext_t;
#endif
#ifdef _MSC_VER