projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix missing subtitles when they start just after the start of a frame.
[dcpomatic.git]
/
src
/
lib
/
dcpomatic_time.h
diff --git
a/src/lib/dcpomatic_time.h
b/src/lib/dcpomatic_time.h
index 204af3c1eb4cc6df8fbae1c290f9b98577f1e2ab..3d792467b465d4a433b5425942018b0e7b06d78b 100644
(file)
--- a/
src/lib/dcpomatic_time.h
+++ b/
src/lib/dcpomatic_time.h
@@
-125,6
+125,10
@@
public:
return Time<S, O> (llrint (HZ * frames_floor(r) / r));
}
+ Time<S, O> round (double r) const {
+ return Time<S, O> (llrint (HZ * frames_round(r) / r));
+ }
+
double seconds () const {
return double (_t) / HZ;
}