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=64c0cb9e7bf93f419040c082568ca9ebd14baa9a;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()); } /**