summaryrefslogtreecommitdiff
path: root/src/lib/dcp_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-01-14 02:27:04 +0000
committerCarl Hetherington <cth@carlh.net>2018-01-14 02:27:04 +0000
commit1f33b815df5d780f123c6bdf8f110a4f2fc70363 (patch)
treeda0470537aa82a98029e71f172cac7b593223982 /src/lib/dcp_decoder.cc
parent77b3fe5cb14784c9365792b0c15f8a68d11546dd (diff)
Only put subtitles in a frame if they overlap more than half of that
frame; may help with #1166.
Diffstat (limited to 'src/lib/dcp_decoder.cc')
-rw-r--r--src/lib/dcp_decoder.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/dcp_decoder.cc b/src/lib/dcp_decoder.cc
index 23b834767..68aa214ab 100644
--- a/src/lib/dcp_decoder.cc
+++ b/src/lib/dcp_decoder.cc
@@ -189,12 +189,14 @@ DCPDecoder::pass_subtitles (ContentTime next)
);
BOOST_FOREACH (dcp::SubtitleString i, subs) {
+ list<dcp::SubtitleString> s;
+ s.push_back (i);
subtitle->emit_text (
ContentTimePeriod (
ContentTime::from_frames (_offset - entry_point, vfr) + ContentTime::from_seconds (i.in().as_seconds ()),
ContentTime::from_frames (_offset - entry_point, vfr) + ContentTime::from_seconds (i.out().as_seconds ())
),
- subs
+ s
);
}
}