Assert that recovered packets are valid

This commit is contained in:
Cameron Gutman
2018-09-04 22:13:37 -07:00
parent ea0f06ded0
commit ddab05c56e
2 changed files with 14 additions and 0 deletions

View File

@@ -467,6 +467,8 @@ void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length, unsigned long l
flags = videoPacket->flags;
firstPacket = isFirstPacket(flags);
LC_ASSERT((flags & ~(FLAG_SOF | FLAG_EOF | FLAG_CONTAINS_PIC_DATA)) == 0);
streamPacketIndex = videoPacket->streamPacketIndex;
// The packets and frames must be in sequence from the FEC queue