优化rtp性能

This commit is contained in:
xia-chu
2021-02-05 11:28:50 +08:00
parent b0e1d5d6aa
commit c5cfbce241
13 changed files with 44 additions and 31 deletions

View File

@@ -34,7 +34,7 @@ bool GB28181Process::inputRtp(bool, const char *data, size_t data_len) {
return handleOneRtp(0, TrackVideo, 90000, (unsigned char *) data, data_len);
}
void GB28181Process::onRtpSorted(const RtpPacket::Ptr &rtp, int) {
void GB28181Process::onRtpSorted(RtpPacket::Ptr rtp, int) {
auto pt = rtp->getHeader()->pt;
if (!_rtp_decoder) {
switch (pt) {