From 7c914666f20017841eff8de109b3622b396f32a4 Mon Sep 17 00:00:00 2001 From: Talus Date: Fri, 13 Sep 2024 17:44:30 +0800 Subject: [PATCH] Fix issue where when RTP timestamp does not change and packet loss occurs, the rtp parser's CommonRtpDecoder never outputs again (#3891) Co-authored-by: TalusL --- src/Extension/CommonRtp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Extension/CommonRtp.cpp b/src/Extension/CommonRtp.cpp index cf395ef4..93770d14 100644 --- a/src/Extension/CommonRtp.cpp +++ b/src/Extension/CommonRtp.cpp @@ -57,6 +57,10 @@ bool CommonRtpDecoder::inputRtp(const RtpPacket::Ptr &rtp, bool){ } _last_seq = seq; + + if (_drop_flag && rtp->getHeader()->mark) { + _drop_flag = false; + } return false; }