From 1e33ccb216e73d3ea94ed08aaa4766c856178757 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 15 Dec 2014 10:33:09 +0000 Subject: Fix previous. --- src/lib/ffmpeg_decoder.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/ffmpeg_decoder.cc') diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 810aa775b..62a3a78c3 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -101,8 +101,8 @@ FFmpegDecoder::FFmpegDecoder (shared_ptr c, shared_ptr 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 */ -- cgit v1.2.3