Add separate LC_ASSERT_VT() for asserts that only apply for valid traffic

This commit is contained in:
Cameron Gutman committed 2023-10-11 20:01:39 -05:00
1 parent 574ad6e676
commit 620b4be477
7 files changed
+89 -74

No files matched your search

+2
View File
@@ -135,6 +135,7 @@ static void VideoReceiveThreadProc(void* context) {
firstDataTimeMs = PltGetMillis();
}
#ifndef LC_FUZZING
if (!receivedFullFrame) {
uint64_t now = PltGetMillis();
@@ -144,6 +145,7 @@ static void VideoReceiveThreadProc(void* context) {
break;
}
}
#endif
if (err < (int)sizeof(RTP_PACKET)) {
// Runt packet