#ifndef _RTP_H_
|
|
#define _RTP_H_
|
|
|
|
|
|
|
|
#include "str.h"
|
|
|
|
|
|
|
|
struct crypto_context;
|
|
|
|
struct rtp_header {
|
|
unsigned char v_p_x_cc;
|
|
unsigned char m_pt;
|
|
u_int16_t seq_num;
|
|
u_int32_t timestamp;
|
|
u_int32_t ssrc;
|
|
u_int32_t csrc[];
|
|
} __attribute__ ((packed));
|
|
struct rtp_extension {
|
|
u_int16_t undefined;
|
|
u_int16_t length;
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int rtp_avp2savp(str *, struct crypto_context *);
|
|
int rtp_savp2avp(str *, struct crypto_context *);
|
|
|
|
|
|
|
|
|
|
#endif
|