mirror of
https://github.com/aler9/gortsplib
synced 2025-10-12 02:20:19 +08:00
improve performance
This commit is contained in:
@@ -56,7 +56,7 @@ func (rr *RtcpReceiver) OnFrame(streamType StreamType, buf []byte) {
|
||||
|
||||
} else {
|
||||
// we can afford to unmarshal all RTCP frames
|
||||
// since they are sent with a frequency much lower than the one of the RTP frames
|
||||
// since they are sent with a frequency much lower than the one of RTP frames
|
||||
frames, err := rtcp.Unmarshal(buf)
|
||||
if err == nil {
|
||||
for _, frame := range frames {
|
||||
|
Reference in New Issue
Block a user