parent
52f9c295f9
commit
64c15fa53e
|
@ -207,7 +207,7 @@ public class SipUtils {
|
||||||
if (mediaDescriptionIndex == 0 && ssrcIndex == 0) {
|
if (mediaDescriptionIndex == 0 && ssrcIndex == 0) {
|
||||||
sdp = SdpFactory.getInstance().createSessionDescription(sdpStr);
|
sdp = SdpFactory.getInstance().createSessionDescription(sdpStr);
|
||||||
}else {
|
}else {
|
||||||
int baseSdpIndex = Math.min(mediaDescriptionIndex, ssrcIndex);
|
int baseSdpIndex = Math.max(mediaDescriptionIndex, ssrcIndex);
|
||||||
//ssrc规定长度为10字节,不取余下长度以避免后续还有“f=”字段
|
//ssrc规定长度为10字节,不取余下长度以避免后续还有“f=”字段
|
||||||
String substring = sdpStr.substring(0, baseSdpIndex);
|
String substring = sdpStr.substring(0, baseSdpIndex);
|
||||||
sdp = SdpFactory.getInstance().createSessionDescription(substring);
|
sdp = SdpFactory.getInstance().createSessionDescription(substring);
|
||||||
|
|
Loading…
Reference in New Issue