fix: pull-recorder of mp4

This commit is contained in:
langhuihui
2025-12-03 10:08:08 +08:00
parent 00cb367901
commit 073395bf07

View File

@@ -113,6 +113,8 @@ func (p *RecordReader) Run() (err error) {
// 更新实时时间
realTime = time.Now() // 这里可以根据需要调整为更精确的时间计算
frame.SetTS32(uint32(ts))
frame.IDR = v.KeyFrame
frame.CTS = time.Duration(v.CTS) * time.Millisecond
return writer.NextVideo()
}