summaryrefslogtreecommitdiff
path: root/src/sub_time.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-10-13 22:59:22 +0200
committerCarl Hetherington <cth@carlh.net>2025-10-13 22:59:22 +0200
commit0225cfa5933cbcb8c236b7cf9dbd05a6260ea911 (patch)
tree97623dd51ba60ed30407a8cb47a1acf7b181e57b /src/sub_time.h
parentba6765286f5746510cfa731a9312c7f31f723043 (diff)
fixup! WIP: SCC support.scc
Diffstat (limited to 'src/sub_time.h')
-rw-r--r--src/sub_time.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sub_time.h b/src/sub_time.h
index 93088cb..0ee8559 100644
--- a/src/sub_time.h
+++ b/src/sub_time.h
@@ -45,6 +45,10 @@ public:
void add (Time t);
void scale (float f);
+ boost::optional<Rational> frame_rate() const {
+ return _rate;
+ }
+
static Time from_hmsf (int h, int m, int s, int f, boost::optional<Rational> rate = boost::optional<Rational> ());
static Time from_hms (int h, int m, int s, int ms);
static Time from_frames (int frames, Rational rate);