improve performance

This commit is contained in:
aler9
2020-09-20 14:48:37 +02:00
parent 81b5754b0b
commit e34b7d9326
4 changed files with 53 additions and 25 deletions

View File

@@ -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 {