From: Michael Zucchi Date: Wed, 16 Oct 2019 22:15:05 +0000 (+1030) Subject: Don't offset the timestamp by the video start. X-Git-Url: https://code.zedzone.au/cvs?a=commitdiff_plain;h=b31a6837cd8aefe7ddc090b673338bc123ae83c1;p=jjmpeg Don't offset the timestamp by the video start. --- diff --git a/contrib/octave/jjoctave/VideoReader.java b/contrib/octave/jjoctave/VideoReader.java index cd3b2f0..dca883c 100644 --- a/contrib/octave/jjoctave/VideoReader.java +++ b/contrib/octave/jjoctave/VideoReader.java @@ -163,7 +163,7 @@ public class VideoReader { * @return Frame timestamp in milliseconds. */ public long getTimeStamp(int sid) { - return videos[sid].convertPTS(frames[sid].getPTS()); + return videos[sid].absolutePTS(frames[sid].getPTS()); } /**