diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-06-27 23:09:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-06-28 23:23:41 +0100 |
| commit | d5dc6e380409b003fc52a97251c2c16b29641cf0 (patch) | |
| tree | 42aa812fd801269f39850af81b7303450b4ed95d /src | |
| parent | bf14618d056dc6f1ed7f32f943a565d8f662049e (diff) | |
Fix incorrect timing of PNG subtitles in second and subsequent reels.
Backported from 5728b8095b9522626d61b1c684a9492f759e2870 in v2.15.x.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/reel_writer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc index 3b9e413a2..b7ccc07ce 100644 --- a/src/lib/reel_writer.cc +++ b/src/lib/reel_writer.cc @@ -619,8 +619,8 @@ ReelWriter::write (PlayerText subs, TextType type, optional<DCPTextTrack> track, shared_ptr<dcp::Subtitle>( new dcp::SubtitleImage( i.image->as_png(), - dcp::Time(period.from.seconds(), _film->video_frame_rate()), - dcp::Time(period.to.seconds(), _film->video_frame_rate()), + dcp::Time(period.from.seconds() - _period.from.seconds(), _film->video_frame_rate()), + dcp::Time(period.to.seconds() - _period.from.seconds(), _film->video_frame_rate()), i.rectangle.x, dcp::HALIGN_LEFT, i.rectangle.y, dcp::VALIGN_TOP, dcp::Time(), dcp::Time() ) |
