Skip to content

Commit

Permalink
Update gortsplib.go
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve authored Jan 4, 2025
1 parent 9e3d705 commit 11fd041
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions machinery/src/capture/gortsplib.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,19 +580,19 @@ func (g *Golibrtsp) Start(ctx context.Context, streamType string, queue *packets
}

// Extract DTS from RTP packets
dts2, err := dtsExtractor.Extract(filteredAU, pts2)
if err != nil {
log.Log.Error("capture.golibrtsp.Start(): " + err.Error())
return
}
//dts2, err := dtsExtractor.Extract(filteredAU, pts2)
//if err != nil {
// log.Log.Error("capture.golibrtsp.Start(): " + err.Error())
// return
//}

pkt := packets.Packet{
IsKeyFrame: idrPresent,
Packet: rtppkt,
Data: enc,
Time: pts2,
TimeLegacy: pts,
CompositionTime: dts2,
CompositionTime: pts2,
Idx: g.VideoH264Index,
IsVideo: true,
IsAudio: false,
Expand Down

0 comments on commit 11fd041

Please sign in to comment.