diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-05-22 16:53:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-05-22 16:53:38 +0100 |
| commit | 24d54ea7fe1ba128cf8d3521d6738fc73a7c623e (patch) | |
| tree | 7c3674e34b30f81334dc8f35a91d3cbb31b7ff9d /src/lib/dcpomatic_time.h | |
| parent | d156fe45ee21fc416ce6b9e43ceed95bf42fde41 (diff) | |
Basics of noting subtitle times in FFmpegSubtitleStreams.
Diffstat (limited to 'src/lib/dcpomatic_time.h')
| -rw-r--r-- | src/lib/dcpomatic_time.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/dcpomatic_time.h b/src/lib/dcpomatic_time.h index e56f58c4b..2a871889a 100644 --- a/src/lib/dcpomatic_time.h +++ b/src/lib/dcpomatic_time.h @@ -157,6 +157,10 @@ public: ContentTime from; ContentTime to; + + ContentTimePeriod operator+ (ContentTime const & o) const { + return ContentTimePeriod (from + o, to + o); + } }; class DCPTime : public Time |
