judge h264 keyframe error

Signed-off-by: fanyun1 <18335108150@163.com>
This commit is contained in:
fanyun1 2023-03-14 09:39:34 +08:00
parent cc3f215a23
commit 33ea125333

View File

@ -693,7 +693,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,
})