diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-15 10:33:09 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-15 10:33:09 +0000 |
| commit | 1e33ccb216e73d3ea94ed08aaa4766c856178757 (patch) | |
| tree | 7f40c41868499406fb4a1deadbaed438b789ac3d /src/lib/ffmpeg_decoder.cc | |
| parent | 818d31f39863a6acda6d0f37c657ba85339500b1 (diff) | |
Fix previous.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<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 */ |
