Fetch receive time only once per frame instead of once per packet

This commit is contained in:
Cameron Gutman 2019-04-26 21:51:17 -07:00
commit 0b8dc80823
3 changed files with 12 additions and 1 deletions

View file

@ -669,6 +669,9 @@ void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length, unsigned long l
void queueRtpPacket(PRTPFEC_QUEUE_ENTRY queueEntry) {
int dataOffset;
LC_ASSERT(!queueEntry->isParity);
LC_ASSERT(queueEntry->receiveTimeMs != 0);
dataOffset = sizeof(*queueEntry->packet);
if (queueEntry->packet->header & FLAG_EXTENSION) {
dataOffset += 4; // 2 additional fields