diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-27 00:40:52 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-09-27 00:40:52 +0100 |
| commit | 9e171f83c256d2386d6ad4ce48bc06a1827ed724 (patch) | |
| tree | 97375eacaa9d1ff8126191877a9ed5f8d79b3b14 /src/lib | |
| parent | a89f999191d9b8fc9037926b8ce00de4226d7480 (diff) | |
Fix error in previous.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/ffmpeg.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ffmpeg.cc b/src/lib/ffmpeg.cc index de08e9df9..9d5aa92ec 100644 --- a/src/lib/ffmpeg.cc +++ b/src/lib/ffmpeg.cc @@ -314,7 +314,8 @@ FFmpeg::pts_offset (vector<shared_ptr<FFmpegAudioStream> > audio_streams, option /* Now adjust so that the video pts starts on a frame */ if (first_video) { - po += first_video.get().round_up (video_frame_rate) - first_video.get(); + ContentTime fvc = first_video.get() + po; + po += fvc.round_up (video_frame_rate) - fvc; } return po; |
