Remove dummy fix for Ezviz C6N
This commit is contained in:
@@ -29,11 +29,6 @@ func UnmarshalSDP(rawSDP []byte) ([]*streamer.Media, error) {
|
|||||||
rawSDP[i+10] = '\n'
|
rawSDP[i+10] = '\n'
|
||||||
}
|
}
|
||||||
|
|
||||||
// fix bug from Ezviz C6N
|
|
||||||
if i := bytes.Index(rawSDP, []byte("H265/90000\r\na=fmtp:96 profile-level-id=420029;")); i > 0 {
|
|
||||||
rawSDP[i+3] = '4'
|
|
||||||
}
|
|
||||||
|
|
||||||
sd := &sdp.SessionDescription{}
|
sd := &sdp.SessionDescription{}
|
||||||
if err := sd.Unmarshal(rawSDP); err != nil {
|
if err := sd.Unmarshal(rawSDP); err != nil {
|
||||||
// fix multiple `s=` https://github.com/AlexxIT/WebRTC/issues/417
|
// fix multiple `s=` https://github.com/AlexxIT/WebRTC/issues/417
|
||||||
|
|||||||
Reference in New Issue
Block a user