summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-27 00:40:52 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-27 00:40:52 +0100
commit9e171f83c256d2386d6ad4ce48bc06a1827ed724 (patch)
tree97375eacaa9d1ff8126191877a9ed5f8d79b3b14 /src
parenta89f999191d9b8fc9037926b8ce00de4226d7480 (diff)
Fix error in previous.
Diffstat (limited to 'src')
-rw-r--r--src/lib/ffmpeg.cc3
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;