From: Carl Hetherington Date: Sat, 26 Sep 2015 23:40:52 +0000 (+0100) Subject: Fix error in previous. X-Git-Tag: v2.3.7~6 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=9e171f83c256d2386d6ad4ce48bc06a1827ed724 Fix error in previous. --- 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;