Fix previous.
authorCarl Hetherington <cth@carlh.net>
Mon, 15 Dec 2014 10:33:09 +0000 (10:33 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 15 Dec 2014 10:33:09 +0000 (10:33 +0000)
src/lib/ffmpeg_decoder.cc

index 810aa775bda70082b8fc51a4979489e72d74c48d..62a3a78c3318d449be2cd37f48d4aa3c3c9e26b9 100644 (file)
@@ -101,8 +101,8 @@ FFmpegDecoder::FFmpegDecoder (shared_ptr<const FFmpegContent> c, shared_ptr<Log>
           I don't think we ever want to do that, as it seems things at -ve PTS are not meant
           to be seen (use for alignment bars etc.); see mantis #418.
        */
-       if (_pts_offset > 0) {
-               _pts_offset = 0;
+       if (_pts_offset > ContentTime ()) {
+               _pts_offset = ContentTime ();
        }
 
        /* Now adjust both so that the video pts starts on a frame */