summaryrefslogtreecommitdiff
path: root/src/lib/video_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-07-12 15:21:31 +0100
committerCarl Hetherington <cth@carlh.net>2017-07-12 15:21:31 +0100
commit2517ec798da291dedc02dd7a7a432f7aa63133e4 (patch)
tree275fdd498846450725f4400ebb5863ba2a5ac15c /src/lib/video_content.cc
parent7698ee82874ee9cb5fa4b251a0a7e7e2df81fcfb (diff)
Add some tests; fix failure to make DCP when there is a bit of audio right at the end of the film (with no corresponding video).
Diffstat (limited to 'src/lib/video_content.cc')
-rw-r--r--src/lib/video_content.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/video_content.cc b/src/lib/video_content.cc
index 30a463089..92219b4c7 100644
--- a/src/lib/video_content.cc
+++ b/src/lib/video_content.cc
@@ -538,3 +538,9 @@ VideoContent::use_template (shared_ptr<const VideoContent> c)
_fade_in = c->_fade_in;
_fade_out = c->_fade_out;
}
+
+void
+VideoContent::modify_position (DCPTime& pos) const
+{
+ pos = pos.ceil (_parent->film()->video_frame_rate());
+}