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

This commit is contained in:
Cameron Gutman committed 2019-04-26 21:51:17 -07:00
1 parent fe7cb006da
commit 0b8dc80823
3 files changed
+12 -1

No files matched your search

+3
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