This commit is contained in:
deepch
2024-01-08 17:35:54 +03:00
parent 9d21d056dd
commit 975d994507
9 changed files with 452 additions and 64 deletions

View File

@@ -592,6 +592,9 @@ func (client *RTSPClient) RTPDemuxer(payloadRAW *[]byte) ([]*av.Packet, bool) {
}
}
offset += 4
if len(content) < end {
return nil, false
}
switch int(content[1]) {
case client.videoID:
if client.PreVideoTS == 0 {
@@ -750,7 +753,7 @@ func (client *RTSPClient) RTPDemuxer(payloadRAW *[]byte) ([]*av.Packet, bool) {
}
}
default:
client.Println("Unsupported NAL Type", naluType)
//client.Println("Unsupported NAL Type", naluType)
}
}
}