From e28b49ea86a7bf17714ce2631fb2e1bb71a6d738 Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Fri, 20 Jan 2023 10:26:57 +0300 Subject: [PATCH] Ignore errors for RTCP packets --- pkg/rtsp/conn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/rtsp/conn.go b/pkg/rtsp/conn.go index 8d35e847..ed3c41de 100644 --- a/pkg/rtsp/conn.go +++ b/pkg/rtsp/conn.go @@ -799,12 +799,12 @@ func (c *Conn) Handle() (err error) { msg := &RTCP{Channel: channelID} if err = msg.Header.Unmarshal(buf); err != nil { - return + continue } msg.Packets, err = rtcp.Unmarshal(buf) if err != nil { - return + continue } c.Fire(msg)