Refine: 消除编译警告

This commit is contained in:
ziyue
2021-12-30 15:28:02 +08:00
parent 940fe333db
commit 7f6be9e118
8 changed files with 67 additions and 199 deletions

View File

@@ -35,7 +35,8 @@ RtpPacket::Ptr RtpInfo::makeRtp(TrackType type, const void* data, size_t len, bo
header->csrc = 0;
header->mark = mark;
header->pt = _pt;
header->seq = htons(_seq++);
header->seq = htons(_seq);
++_seq;
header->stamp = htonl(uint64_t(stamp) * _sample_rate / 1000);
header->ssrc = htonl(_ssrc);