diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-10 16:15:13 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-10 16:15:13 +0100 |
| commit | 8c6e4c8e4f37450f44cb4ca9918406a6f2cc6055 (patch) | |
| tree | 3b77e87348a5048713520b65e306b25f040494c0 /src/lib/dcp_subtitle_content.cc | |
| parent | 38164bf6e8095f8a8f852bd21877cfb90d204868 (diff) | |
Various fixes for DCP subtitles, and a test or two.
Diffstat (limited to 'src/lib/dcp_subtitle_content.cc')
| -rw-r--r-- | src/lib/dcp_subtitle_content.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/dcp_subtitle_content.cc b/src/lib/dcp_subtitle_content.cc index e9998dd2a..83b0d200c 100644 --- a/src/lib/dcp_subtitle_content.cc +++ b/src/lib/dcp_subtitle_content.cc @@ -24,6 +24,7 @@ #include "i18n.h" using std::string; +using std::list; using boost::shared_ptr; using dcp::raw_convert; @@ -47,7 +48,7 @@ DCPSubtitleContent::examine (shared_ptr<Job> job) { Content::examine (job); dcp::SubtitleContent sc (path (0), false); - _length = DCPTime::from_frames (sc.intrinsic_duration(), sc.edit_rate().as_float ()); + _length = DCPTime::from_seconds (sc.latest_subtitle_out().to_seconds ()); } DCPTime |
