Remove dummy fix for Ezviz C6N

This commit is contained in:
Alexey Khit
2023-03-04 06:23:43 +03:00
parent 5aa20f0845
commit d805d560b9
-5
View File
@@ -29,11 +29,6 @@ func UnmarshalSDP(rawSDP []byte) ([]*streamer.Media, error) {
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{}
if err := sd.Unmarshal(rawSDP); err != nil {
// fix multiple `s=` https://github.com/AlexxIT/WebRTC/issues/417