projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6ef1fc5
)
Try rounding length_after_trim.
author
Carl Hetherington
<cth@carlh.net>
Wed, 20 May 2020 12:36:16 +0000
(14:36 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 20 May 2020 19:56:28 +0000
(21:56 +0200)
src/lib/content.cc
patch
|
blob
|
history
diff --git
a/src/lib/content.cc
b/src/lib/content.cc
index a722cd15dae37fde8c2a17554753243d5651aa65..2593c01df2ca7a569cf48f101d55883840dd0bed 100644
(file)
--- a/
src/lib/content.cc
+++ b/
src/lib/content.cc
@@
-303,7
+303,7
@@
Content::technical_summary () const
DCPTime
Content::length_after_trim (shared_ptr<const Film> film) const
{
DCPTime
Content::length_after_trim (shared_ptr<const Film> film) const
{
- return max
(DCPTime(), full_length(film) - DCPTime(trim_start() + trim_end(), film->active_frame_rate_change(position())
));
+ return max
(DCPTime(), full_length(film) - DCPTime(trim_start() + trim_end(), film->active_frame_rate_change(position()))).round(film->video_frame_rate(
));
}
/** @return string which changes when something about this content changes which affects
}
/** @return string which changes when something about this content changes which affects