mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
improve performance
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user