mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-27 14:29:58 +00:00
Assert that LENTRY_INTERNAL can fit in the reserved space
This commit is contained in:
1 parent
0b8dc80823
commit
4a82762118
1 file changed
+1
@@ -679,6 +679,7 @@ void queueRtpPacket(PRTPFEC_QUEUE_ENTRY queueEntry) {
|
|||||||
|
|
||||||
// Reuse the memory reserved for the RTPFEC_QUEUE_ENTRY to store the LENTRY_INTERNAL
|
// Reuse the memory reserved for the RTPFEC_QUEUE_ENTRY to store the LENTRY_INTERNAL
|
||||||
// now that we're in the depacketizer.
|
// now that we're in the depacketizer.
|
||||||
|
LC_ASSERT(sizeof(LENTRY_INTERNAL) <= sizeof(RTPFEC_QUEUE_ENTRY));
|
||||||
PLENTRY_INTERNAL existingEntry = (PLENTRY_INTERNAL)queueEntry;
|
PLENTRY_INTERNAL existingEntry = (PLENTRY_INTERNAL)queueEntry;
|
||||||
existingEntry->allocPtr = queueEntry->packet;
|
existingEntry->allocPtr = queueEntry->packet;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user