修改RTP端口计算方法,确保分配偶数端口

pull/1/head
Lawrence 2020-10-19 20:45:59 +08:00
parent fcf64ffa5e
commit efcd77078e
1 changed files with 7 additions and 4 deletions

View File

@ -52,6 +52,9 @@ public class ZLMUtils {
currentPort = udpPortRangeArray[0];
return udpPortRangeArray[0];
} else {
if (currentPort % 2 == 1) {
currentPort++;
}
return currentPort++;
}
}