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

Kernel: Extract SrsPps to kernel

This commit is contained in:
winlin 2021-02-25 13:46:52 +08:00
parent 7b7a225631
commit 20df644a05
7 changed files with 236 additions and 161 deletions

View file

@ -34,6 +34,10 @@ using namespace std;
#include <srs_kernel_utility.hpp>
#include <srs_kernel_flv.hpp>
#include <srs_kernel_kbps.hpp>
SrsPps* _srs_pps_objs_rtps = new SrsPps(_srs_clock);
/* @see https://tools.ietf.org/html/rfc1889#section-5.1
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
@ -764,6 +768,8 @@ SrsRtpPacket2::SrsRtpPacket2()
shared_msg = NULL;
frame_type = SrsFrameTypeReserved;
cached_payload_size = 0;
++_srs_pps_objs_rtps->sugar;
}
SrsRtpPacket2::~SrsRtpPacket2()