summaryrefslogtreecommitdiff
path: root/src/dcp_time.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-14 00:20:06 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-14 00:20:06 +0100
commit8837fe70049bd5ed7ab583c06d6c9a620a01b351 (patch)
tree798e86e707bfecc147a54d999fe826f4bc5dd3a8 /src/dcp_time.h
parent937e4352072486832372fc8ebdb83583be9b8a2a (diff)
Tighten up time parsing, and also allow the previously
unsupported Interop HH:MM:SS.sss format for times.
Diffstat (limited to 'src/dcp_time.h')
-rw-r--r--src/dcp_time.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dcp_time.h b/src/dcp_time.h
index e8724614..2a9f13d8 100644
--- a/src/dcp_time.h
+++ b/src/dcp_time.h
@@ -39,6 +39,7 @@
#define LIBDCP_TIME_H
#include "types.h"
+#include <boost/optional.hpp>
#include <stdint.h>
#include <string>
#include <iostream>
@@ -78,7 +79,7 @@ public:
Time (double seconds, int tcr);
- Time (std::string time, int tcr);
+ Time (std::string time, boost::optional<int> tcr);
int h; ///< hours
int m; ///< minutes