diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-06-27 23:09:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-06-27 23:56:47 +0100 |
| commit | 5728b8095b9522626d61b1c684a9492f759e2870 (patch) | |
| tree | 95c5ec1e0b9881f8d7b5b749a3b408b58977b81f /src/lib | |
| parent | 498ac2a3881882054acc808cdd36f835472dc5db (diff) | |
Fix incorrect timing of PNG subtitles in second and subsequent reels.
Diffstat (limited to 'src/lib')
| -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 81057185a..69709fa0d 100644 --- a/src/lib/reel_writer.cc +++ b/src/lib/reel_writer.cc @@ -640,8 +640,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() ) |
