1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: process twcc before srtp unprotected

This commit is contained in:
jinxue.cgh 2020-06-27 14:37:35 +08:00 committed by winlin
parent 121266ecbf
commit 6ff048ed35
3 changed files with 28 additions and 13 deletions

View file

@ -175,6 +175,7 @@ private:
uint32_t ssrc;
uint32_t csrc[15];
SrsRtpExtensions extensions_;
bool decode_only_header_;
public:
SrsRtpHeader();
virtual ~SrsRtpHeader();
@ -199,6 +200,7 @@ public:
void set_padding(uint8_t v);
uint8_t get_padding() const;
void set_extensions(const SrsRtpExtensionTypes* extmap);
void set_decode_only_header(bool only_header);
srs_error_t get_twcc_sequence_number(uint16_t& twcc_sn);
srs_error_t set_twcc_sequence_number(uint8_t id, uint16_t sn);
};