diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-13 22:59:22 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-10-13 22:59:22 +0200 |
| commit | 0225cfa5933cbcb8c236b7cf9dbd05a6260ea911 (patch) | |
| tree | 97623dd51ba60ed30407a8cb47a1acf7b181e57b /src/sub_time.h | |
| parent | ba6765286f5746510cfa731a9312c7f31f723043 (diff) | |
fixup! WIP: SCC support.scc
Diffstat (limited to 'src/sub_time.h')
| -rw-r--r-- | src/sub_time.h | 4 |
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); |
