This commit is contained in:
yunfan 2024-02-09 17:04:07 +01:00 committed by GitHub
commit 74fa0b2729
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -699,7 +699,7 @@ func (client *RTSPClient) RTPDemuxer(payloadRAW *[]byte) ([]*av.Packet, bool) {
Data: append(binSize(len(packet[2:size+2])), packet[2:size+2]...),
CompositionTime: time.Duration(1) * time.Millisecond,
Idx: client.videoIDX,
IsKeyFrame: naluType == 5,
IsKeyFrame: naluTypefs == 5,
Duration: time.Duration(float32(timestamp-client.PreVideoTS)/90) * time.Millisecond,
Time: time.Duration(timestamp/90) * time.Millisecond,
})