improve performance

This commit is contained in:
aler9
2022-04-10 11:29:15 +02:00
parent bfe4e8cdaa
commit 7bf907e94c
6 changed files with 14 additions and 16 deletions

View File

@@ -263,9 +263,8 @@ func (sc *ServerConn) readFuncTCP(readRequest chan readReq) error {
TrackID: trackID,
Packet: pkt,
}
sc.session.processPacketRTP(&ctx)
at := sc.session.announcedTracks[trackID]
sc.session.processPacketRTP(at, &ctx)
if at.h264Decoder != nil {
if at.h264Encoder == nil && len(payload) > udpReadBufferSize {