test annexB

This commit is contained in:
deepch
2022-03-13 22:16:09 +03:00
parent c652970643
commit b13c5434c5
2 changed files with 26 additions and 10 deletions

View File

@@ -585,7 +585,6 @@ func (client *RTSPClient) RTPDemuxer(payloadRAW *[]byte) ([]*av.Packet, bool) {
client.PreVideoTS = timestamp
}
if timestamp-client.PreVideoTS < 0 {
//var ui32 uint64 = math.MaxUint32
if math.MaxUint32-client.PreVideoTS < 90*100 { //100 ms
client.PreVideoTS = 0
client.PreVideoTS -= (math.MaxUint32 - client.PreVideoTS)
@@ -715,7 +714,7 @@ func (client *RTSPClient) RTPDemuxer(payloadRAW *[]byte) ([]*av.Packet, bool) {
}
}
default:
//client.Println("Unsupported NAL Type", naluType)
client.Println("Unsupported NAL Type", naluType)
}
}
}