From 9e171f83c256d2386d6ad4ce48bc06a1827ed724 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 27 Sep 2015 00:40:52 +0100 Subject: Fix error in previous. --- src/lib/ffmpeg.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib') 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 > 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; -- cgit v1.2.3