- /* fixup timestamp near offset */
- pts_t fixuppts_t(off_t offset, pts_t ts);
+ /* fixup timestamp near offset, i.e. convert to zero-based */
+ int fixupPTS(const off_t &offset, pts_t &ts);
+
+ /* get PTS before offset */
+ int getPTS(off_t &offset, pts_t &pts);