Pass colour on when decoding.
authorCarl Hetherington <cth@carlh.net>
Thu, 2 Jul 2015 12:39:19 +0000 (13:39 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 2 Jul 2015 12:39:19 +0000 (13:39 +0100)
src/lib/subrip_decoder.cc

index 6542c1a8e2590e37b581cedd7efc942aa359d1be..c53e8960228910014a96ff3deca91c253aedfe0c 100644 (file)
@@ -63,7 +63,7 @@ SubRipDecoder::pass ()
                                dcp::SubtitleString (
                                        SubRipContent::font_id,
                                        j->italic,
-                                       dcp::Colour (255, 255, 255),
+                                       dcp::Colour (j->colour.r * 255, j->colour.g * 255, j->colour.b * 255),
                                        j->font_size.points (72 * 11),
                                        1.0,
                                        dcp::Time (_subtitles[_next].from.all_as_seconds()),