From 8837fe70049bd5ed7ab583c06d6c9a620a01b351 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 14 Jun 2016 00:20:06 +0100 Subject: Tighten up time parsing, and also allow the previously unsupported Interop HH:MM:SS.sss format for times. --- src/subtitle_node.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/subtitle_node.h') diff --git a/src/subtitle_node.h b/src/subtitle_node.h index 28e410e3..37d41f01 100644 --- a/src/subtitle_node.h +++ b/src/subtitle_node.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2015 Carl Hetherington + Copyright (C) 2012-2016 Carl Hetherington This file is part of libdcp. @@ -52,7 +52,7 @@ class SubtitleNode { public: SubtitleNode () {} - SubtitleNode (boost::shared_ptr node, int tcr, std::string font_id_attribute); + SubtitleNode (boost::shared_ptr node, boost::optional tcr, std::string font_id_attribute); Time in; Time out; @@ -62,7 +62,7 @@ public: std::list > text_nodes; private: - Time fade_time (boost::shared_ptr, std::string name, int tcr); + Time fade_time (boost::shared_ptr, std::string name, boost::optional tcr); }; } -- cgit v1.2.3