From 9e18428d7b99ccdcba835718392fe53dc0568331 Mon Sep 17 00:00:00 2001 From: xiongguangjie Date: Sat, 11 Jun 2022 23:50:47 +0800 Subject: [PATCH] delay min is 120ms --- srt/SrtTransport.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srt/SrtTransport.cpp b/srt/SrtTransport.cpp index adb94cac..8089c168 100644 --- a/srt/SrtTransport.cpp +++ b/srt/SrtTransport.cpp @@ -164,7 +164,9 @@ void SrtTransport::handleHandshakeConclusion(HandshakePacket &pkt, struct sockad HSExtStreamID::Ptr sid; uint32_t srt_flag = 0xbf; uint16_t delay = DurationCountMicroseconds(_now - _induction_ts) * getLatencyMul() / 1000; - + if (delay <= 120) { + delay = 120; + } for (auto ext : pkt.ext_list) { // TraceL << getIdentifier() << " ext " << ext->dump(); if (!req) {