File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -207,13 +207,14 @@ func (t *TrackSynchronizer) getPTSWithoutRebase(pkt jitter.ExtPacket) (time.Dura
207
207
lastTS = ts
208
208
}
209
209
210
- pts := t .lastPTS + t .toDuration (ts - t . lastTS )
210
+ pts := t .lastPTS + t .toDuration (ts - lastTS )
211
211
estimatedPTS := time .Since (t .startTime )
212
212
if pts < t .lastPTS || ! t .acceptable (pts - estimatedPTS ) {
213
213
newStartRTP := ts - t .toRTP (estimatedPTS )
214
214
t .logger .Infow (
215
215
"correcting PTS" ,
216
216
"currentTS" , ts ,
217
+ "lastTS" , lastTS ,
217
218
"PTS" , pts ,
218
219
"estimatedPTS" , estimatedPTS ,
219
220
"offset" , pts - estimatedPTS ,
@@ -320,13 +321,14 @@ func (t *TrackSynchronizer) getPTSWithRebase(pkt jitter.ExtPacket) (time.Duratio
320
321
lastTS = ts
321
322
}
322
323
323
- pts := t .lastPTS + t .toDuration (ts - t . lastTS )
324
+ pts := t .lastPTS + t .toDuration (ts - lastTS )
324
325
now := mono .Now ()
325
326
estimatedPTS := now .Sub (t .startTime )
326
327
if pts < t .lastPTS || ! t .acceptable (pts - estimatedPTS ) {
327
328
t .logger .Infow (
328
329
"correcting PTS" ,
329
330
"currentTS" , ts ,
331
+ "lastTS" , lastTS ,
330
332
"PTS" , pts ,
331
333
"estimatedPTS" , estimatedPTS ,
332
334
"offset" , pts - estimatedPTS ,
You can’t perform that action at this time.
0 commit comments