fix negative dur
This commit is contained in:
parent
e379e68a0b
commit
c652970643
@ -587,7 +587,8 @@ func (client *RTSPClient) RTPDemuxer(payloadRAW *[]byte) ([]*av.Packet, bool) {
|
||||
if timestamp-client.PreVideoTS < 0 {
|
||||
//var ui32 uint64 = math.MaxUint32
|
||||
if math.MaxUint32-client.PreVideoTS < 90*100 { //100 ms
|
||||
client.PreVideoTS = math.MaxUint32 - client.PreVideoTS
|
||||
client.PreVideoTS = 0
|
||||
client.PreVideoTS -= (math.MaxUint32 - client.PreVideoTS)
|
||||
} else {
|
||||
client.PreVideoTS = 0
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user