Ignore errors for RTCP packets

This commit is contained in:
Alexey Khit
2023-01-20 10:26:57 +03:00
parent 5c17d8fcb6
commit e28b49ea86
+2 -2
View File
@@ -799,12 +799,12 @@ func (c *Conn) Handle() (err error) {
msg := &RTCP{Channel: channelID} msg := &RTCP{Channel: channelID}
if err = msg.Header.Unmarshal(buf); err != nil { if err = msg.Header.Unmarshal(buf); err != nil {
return continue
} }
msg.Packets, err = rtcp.Unmarshal(buf) msg.Packets, err = rtcp.Unmarshal(buf)
if err != nil { if err != nil {
return continue
} }
c.Fire(msg) c.Fire(msg)