Don't offset the timestamp by the video start.
authorMichael Zucchi <notzed@gmail.com>
Wed, 16 Oct 2019 22:15:05 +0000 (08:45 +1030)
committerMichael Zucchi <notzed@gmail.com>
Wed, 16 Oct 2019 22:15:05 +0000 (08:45 +1030)
contrib/octave/jjoctave/VideoReader.java

index cd3b2f0..dca883c 100644 (file)
@@ -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());
        }
 
        /**