projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix various problems caused by non-integer-frame start trims,
[dcpomatic.git]
/
src
/
lib
/
video_content.cc
diff --git
a/src/lib/video_content.cc
b/src/lib/video_content.cc
index 92219b4c7cf9be404289d09f1be614f10f75144c..cd96e19bc8b85100d9a052889870a28dd8d01761 100644
(file)
--- a/
src/lib/video_content.cc
+++ b/
src/lib/video_content.cc
@@
-544,3
+544,9
@@
VideoContent::modify_position (DCPTime& pos) const
{
pos = pos.ceil (_parent->film()->video_frame_rate());
}
+
+void
+VideoContent::modify_trim_start (ContentTime& trim) const
+{
+ trim = trim.ceil (_parent->video_frame_rate().get());
+}