Only put subtitles in a frame if they overlap more than half of that
[dcpomatic.git] / src / lib / dcp_decoder.cc
index 23b8347676c54b37ea528931ecd72204b058b79a..68aa214ab859e10411af98475a800b2827576ead 100644 (file)
@@ -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
                                );
                }
        }