diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-01-31 01:07:51 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-01-31 01:07:51 +0000 |
| commit | b6a10d403b671c0b0e4c9faeab52e62ba1ac3c5a (patch) | |
| tree | fde024528d19d3c8e43b59876df034037226c837 | |
| parent | a5d5ceb22c4f5dd3e6c5b7a8da76f724dd266a75 (diff) | |
Fix duration/intrinsic duration confusion.
| -rw-r--r-- | src/lib/reel_writer.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc index 4aa5ff3a7..da246ca0a 100644 --- a/src/lib/reel_writer.cc +++ b/src/lib/reel_writer.cc @@ -458,10 +458,12 @@ ReelWriter::create_reel (list<ReferencedReelAsset> const & refs, list<shared_ptr } else { /* All our assets should be the same length; use the picture asset length here - as a reference to set the subtitle one. + as a reference to set the subtitle one. We'll use the duration rather than + the intrinsic duration; we don't care if the picture asset has been trimmed, we're + just interested in its presentation length. */ dynamic_pointer_cast<dcp::SMPTESubtitleAsset>(_subtitle_asset)->set_intrinsic_duration ( - reel_picture_asset->intrinsic_duration () + reel_picture_asset->duration () ); _subtitle_asset->write ( @@ -473,7 +475,7 @@ ReelWriter::create_reel (list<ReferencedReelAsset> const & refs, list<shared_ptr new dcp::ReelSubtitleAsset ( _subtitle_asset, dcp::Fraction (_film->video_frame_rate(), 1), - reel_picture_asset->intrinsic_duration (), + reel_picture_asset->duration(), 0 ) ); |
