Advertisement
Guest User

fix2

a guest
Oct 12th, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.47 KB | None | 0 0
  1. diff --git a/src/plumbing/tsfix.c b/src/plumbing/tsfix.c
  2. index c75df63..afb65e3 100644
  3. --- a/src/plumbing/tsfix.c
  4. +++ b/src/plumbing/tsfix.c
  5. @@ -235,7 +235,7 @@ normalize_ts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt, int backlog)
  6.    pkt->pkt_dts &= PTS_MASK;
  7.  
  8.    /* Subtract the transport wide start offset */
  9. -  dts = pkt->pkt_dts - ref;
  10. +  dts = (pkt->pkt_dts - ref) & PTS_MASK;
  11.  
  12.    if (tfs->tfs_last_dts_norm == PTS_UNSET) {
  13.      if (dts < 0 || pkt->pkt_err) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement