Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
timeshift: add little comment to last pts delta fix
  • Loading branch information
perexg committed Oct 23, 2014
1 parent 1d2df40 commit 2ad44b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/timeshift.c
Expand Up @@ -171,6 +171,12 @@ static void timeshift_input
/* Record (one-off) PTS delta */
if (sm->sm_type == SMT_PACKET && ts->pts_delta == PTS_UNSET) {
if (pkt->pkt_pts != PTS_UNSET) {
/*
* Gather some packets and select the lowest pts to identify
* the correct start. Note that for timeshift, the tsfix
* stream plugin is applied, so the starting pts should be
* near zero. If not - it's a bug.
*/
int i;
int64_t smallest = INT64_MAX;
for (i = 0; i < ARRAY_SIZE(ts->pts_val); i++) {
Expand Down

0 comments on commit 2ad44b0

Please sign in to comment.