mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-11-30 09:44:28 +00:00
Fetch receive time only once per frame instead of once per packet
This commit is contained in:
1 parent
fe7cb006da
commit
0b8dc80823
3 files changed
+12
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user