emit a decode error in case of packets with wrong SSRC

This commit is contained in:
aler9
2023-08-17 14:41:47 +02:00
committed by Alessandro Ros
parent 8b047b545b
commit 4e000eb2dd
13 changed files with 323 additions and 289 deletions

View File

@@ -758,7 +758,7 @@ func (ss *ServerSession) handleRequestInner(sc *ServerConn, req *base.Request) (
th := headers.Transport{}
if ss.state == ServerSessionStatePrePlay {
ssrc, ok := stream.lastSSRC(medi)
ssrc, ok := stream.senderSSRC(medi)
if ok {
th.SSRC = &ssrc
}