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

Support fast padding

This commit is contained in:
winlin 2020-04-17 18:04:52 +08:00
parent e4eb501c57
commit cf52390cf2
7 changed files with 37 additions and 6 deletions

View file

@ -199,6 +199,12 @@ void SrsRtpPacket2::set_padding(int size)
padding = size;
}
void SrsRtpPacket2::add_padding(int size)
{
rtp_header.set_padding(padding + size > 0);
padding += size;
}
void SrsRtpPacket2::reset()
{
rtp_header.reset();