From cb6729aa79b555b219974207fbe2ff0510f9d3ea Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 20 Jan 2021 23:42:28 +0100 Subject: Bump libdcp for better verification, and make API adjustments. --- src/lib/dcp_subtitle_decoder.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/lib/dcp_subtitle_decoder.cc') diff --git a/src/lib/dcp_subtitle_decoder.cc b/src/lib/dcp_subtitle_decoder.cc index 5372df0a5..1b144f204 100644 --- a/src/lib/dcp_subtitle_decoder.cc +++ b/src/lib/dcp_subtitle_decoder.cc @@ -67,7 +67,7 @@ DCPSubtitleDecoder::seek (ContentTime time, bool accurate) Decoder::seek (time, accurate); _next = _subtitles.begin (); - list >::const_iterator i = _subtitles.begin (); + auto i = _subtitles.begin (); while (i != _subtitles.end() && ContentTime::from_seconds ((*_next)->in().as_seconds()) < time) { ++i; } @@ -92,7 +92,7 @@ DCPSubtitleDecoder::pass () ContentTimePeriod const p = content_time_period (*_next); while (_next != _subtitles.end () && content_time_period (*_next) == p) { - shared_ptr ns = dynamic_pointer_cast(*_next); + auto ns = dynamic_pointer_cast(*_next); if (ns) { s.push_back (*ns); ++_next; @@ -101,7 +101,7 @@ DCPSubtitleDecoder::pass () this would need to be done both here and in DCPDecoder. */ - shared_ptr ni = dynamic_pointer_cast(*_next); + auto ni = dynamic_pointer_cast(*_next); if (ni) { emit_subtitle_image (p, *ni, film()->frame_size(), only_text()); ++_next; @@ -114,12 +114,12 @@ DCPSubtitleDecoder::pass () } ContentTimePeriod -DCPSubtitleDecoder::content_time_period (shared_ptr s) const +DCPSubtitleDecoder::content_time_period (shared_ptr s) const { - return ContentTimePeriod ( - ContentTime::from_seconds (s->in().as_seconds ()), - ContentTime::from_seconds (s->out().as_seconds ()) - ); + return { + ContentTime::from_seconds(s->in().as_seconds()), + ContentTime::from_seconds(s->out().as_seconds()) + }; } -- cgit v1.2.3