Test queued capture gaps without dropping frames or delaying ready video

This commit is contained in:
evgeny committed 2026-10-19 18:23:25 +02:00
1 parent 9bffe49e62
commit 526ee5ec8b
2 files changed
+29 -4

No files matched your search

+1 -1
View File
@@ -365,7 +365,7 @@ void CallVideoEngine::receive() {
const int64_t decodedAt = nowUs();
++decoded; decodeMax = std::max(decodeMax, decodedAt - decodeStarted);
rxAgeMax = std::max(rxAgeMax, decodedAt - packet.received_us);
pictures.push_back({{packet.pts_us, packet.received_us}, image});
pictures.push_back({{packet.pts_us, packet.received_us, 1000000u / packet.format.fps}, image});
if (packet.pts_us % 1000000 < 34000)
DEBUG_DEBUG(DEBUG_CATEGORY_CALL,
"video timing stage=decode call=%llu frame=%llu pts=%lld mono_us=%lld decode_us=%lld rx_age_us=%lld queue=%zu",