Add frame number to udp packets

This commit is contained in:
Lauri Kasanen
2022-10-14 11:34:52 +03:00
parent 7350b12b3d
commit 7399e5dc62
3 changed files with 18 additions and 7 deletions

View File

@@ -675,6 +675,9 @@ Encoder *EncodeManager::startRect(const Rect& rect, int type, const bool trackQu
beforeLength = conn->getOutStream(conn->cp.supportsUdp)->length();
if (conn->cp.supportsUdp)
((network::UdpStream *) conn->getOutStream(conn->cp.supportsUdp))->setFrameNumber(updates);
stats[klass][activeType].rects++;
stats[klass][activeType].pixels += rect.area();
equiv = 12 + rect.area() * (conn->cp.pf().bpp/8);