From 822a401f306738ea7d4e27c8ef47847a103ce8ae Mon Sep 17 00:00:00 2001 From: Dw9 Date: Sat, 26 Mar 2022 10:15:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AB=AF=E5=8F=A3=E6=B1=A0?= =?UTF-8?q?=E8=8C=83=E5=9B=B4=E9=99=90=E5=AE=9A=E9=80=BB=E8=BE=91=20(#1508?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/Rtsp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rtsp/Rtsp.cpp b/src/Rtsp/Rtsp.cpp index 79c23a93..f7235042 100644 --- a/src/Rtsp/Rtsp.cpp +++ b/src/Rtsp/Rtsp.cpp @@ -375,7 +375,7 @@ public: }; GET_CONFIG_FUNC(uint16_t, s_min_port, RtpProxy::kPortRange, [](const string &str) { return func(str, 0); }); GET_CONFIG_FUNC(uint16_t, s_max_port, RtpProxy::kPortRange, [](const string &str) { return func(str, 1); }); - assert(s_max_port > s_min_port + 36); + assert(s_max_port >= s_min_port + 36 -1); setRange((s_min_port + 1) / 2, s_max_port / 2); }