From ac01dc97afb88299961deabe5d841947f96b371d Mon Sep 17 00:00:00 2001 From: wxf Date: Sat, 17 Jul 2021 19:57:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=AF=B9=E9=9D=9E=20uint16?= =?UTF-8?q?=5Ft=20=E5=BA=8F=E5=8F=B7=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/RtpReceiver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rtsp/RtpReceiver.h b/src/Rtsp/RtpReceiver.h index fda96de6..89ac0e42 100644 --- a/src/Rtsp/RtpReceiver.h +++ b/src/Rtsp/RtpReceiver.h @@ -67,7 +67,7 @@ public: //过滤seq回退包(回环包除外) return; } - } else if (_next_seq_out && seq - _next_seq_out > (0xFFFF >> 1)) { + } else if (_next_seq_out && seq - _next_seq_out > (std::numeric_limits::max() >> 1)) { //过滤seq跳变非常大的包(防止回环时乱序时收到非常大的seq) return; }