mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-27 15:37:50 +08:00
修改RTP端口计算方法,确保分配偶数端口
This commit is contained in:
parent
fcf64ffa5e
commit
efcd77078e
@ -52,6 +52,9 @@ public class ZLMUtils {
|
||||
currentPort = udpPortRangeArray[0];
|
||||
return udpPortRangeArray[0];
|
||||
} else {
|
||||
if (currentPort % 2 == 1) {
|
||||
currentPort++;
|
||||
}
|
||||
return currentPort++;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user