Remove erroneous rounding of subrip times.
authorCarl Hetherington <cth@carlh.net>
Fri, 23 Jan 2015 22:26:24 +0000 (22:26 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 23 Jan 2015 22:26:24 +0000 (22:26 +0000)
ChangeLog
src/lib/subrip_decoder.cc

index 717fcc5280634ba4821be62013de7ee444e22b68..31134acf9cdbc528a9be327edbe9dfcd48726b50 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-01-23  Carl Hetherington  <cth@carlh.net>
+
+       * Fix flicker of SubRip subtitles in some cases.
+
 2015-01-21  Carl Hetherington  <cth@carlh.net>
 
        * Version 2.0.36 released.
index 694b2215725b2a17070256f2f28a3d3b404f905f..552a96b8f325416fe1b2c60ac0470ddb19422276 100644 (file)
@@ -65,8 +65,8 @@ SubRipDecoder::pass ()
                                        j->italic,
                                        dcp::Colour (255, 255, 255),
                                        j->font_size.points (72 * 11),
-                                       dcp::Time (rint (_subtitles[_next].from.all_as_seconds())),
-                                       dcp::Time (rint (_subtitles[_next].to.all_as_seconds())),
+                                       dcp::Time (_subtitles[_next].from.all_as_seconds()),
+                                       dcp::Time (_subtitles[_next].to.all_as_seconds()),
                                        i->vertical_position.line.get() * (1.5 / 22) + 0.8,
                                        dcp::TOP,
                                        j->text,