Only put subtitles in a frame if they overlap more than half of that
[dcpomatic.git] / src / lib / player.cc
index 8e56991f816eb10a843fdf90261d561937fcaa5d..eb8593e43abb91cfa418a9bd0f2a6a97d30c9dfe 100644 (file)
@@ -624,7 +624,7 @@ Player::subtitles_for_frame (DCPTime time) const
 {
        list<PositionImage> subtitles;
 
-       BOOST_FOREACH (PlayerSubtitles i, _active_subtitles.get_burnt (time, _always_burn_subtitles)) {
+       BOOST_FOREACH (PlayerSubtitles i, _active_subtitles.get_burnt (DCPTimePeriod(time, time + DCPTime::from_frames(1, _film->video_frame_rate())),  _always_burn_subtitles)) {
 
                /* Image subtitles */
                list<PositionImage> c = transform_image_subtitles (i.image);