Browse Source

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

pull/1/head
Lawrence 4 years ago
parent
commit
efcd77078e
  1. 3
      src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMUtils.java

3
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMUtils.java

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

Loading…
Cancel
Save