When debugging the tsfix code a developer can now narrow PTS_MASK
to force wrap to happen much more frequently
return;
}
+ pkt->pkt_dts &= PTS_MASK;
+ pkt->pkt_pts &= PTS_MASK;
+
/* Subtract the transport wide start offset */
dts = pkt->pkt_dts - tf->tf_tsref;
if(tf->tf_tsref == PTS_UNSET &&
(!tf->tf_hasvideo ||
(SCT_ISVIDEO(tfs->tfs_type) && pkt->pkt_frametype == PKT_I_FRAME))) {
- tf->tf_tsref = pkt->pkt_dts;
+ tf->tf_tsref = pkt->pkt_dts & PTS_MASK;
tsfixprintf("reference clock set to %"PRId64"\n", tf->tf_tsref);
}