Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix pts_diff() function (same a b values)
  • Loading branch information
perexg committed Feb 9, 2016
1 parent d8cba39 commit 47bd9f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packet.h
Expand Up @@ -126,7 +126,7 @@ static inline int64_t pts_diff(int64_t a, int64_t b)
b &= PTS_MASK;
if (b < (PTS_MASK / 4) && a > (PTS_MASK / 2))
return b + PTS_MASK + 1 - a;
else if (b > a)
else if (b >= a)
return b - a;
else
return PTS_UNSET;
Expand Down

0 comments on commit 47bd9f2

Please sign in to comment.