From 5efe8435958492e51a49bafcad4bef5d2369cd6f Mon Sep 17 00:00:00 2001 From: JanffuChan <94026533+JanffuChan@users.noreply.github.com> Date: Tue, 25 Nov 2025 19:00:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Drtp=E6=97=A0=E5=AE=9E?= =?UTF-8?q?=E9=99=85=E8=B4=9F=E8=BD=BD=E6=97=B6=E5=88=A4=E5=AE=9A=E4=B8=BA?= =?UTF-8?q?=E4=B8=A2=E5=8C=85=E7=9A=84bug=20(#4563)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit RTP无负载时,也记录序号 --- src/Extension/CommonRtp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Extension/CommonRtp.cpp b/src/Extension/CommonRtp.cpp index fd3b8abd..b4687d07 100644 --- a/src/Extension/CommonRtp.cpp +++ b/src/Extension/CommonRtp.cpp @@ -28,6 +28,8 @@ bool CommonRtpDecoder::inputRtp(const RtpPacket::Ptr &rtp, bool){ if (payload_size <= 0) { // 无实际负载 [AUTO-TRANSLATED:305af48f] // No actual load + // 无实际负载也需要记录序号,否则会误判丢包 + _last_seq = rtp->getSeq(); return false; } auto payload = rtp->getPayload(); @@ -93,4 +95,4 @@ bool CommonRtpEncoder::inputFrame(const Frame::Ptr &frame){ is_key = false; } return len > 0; -} \ No newline at end of file +}