2015-10-06 Carl Hetherington <cth@carlh.net>
+ * Fix invalid SMPTE subtitle output
+ in some cases.
+
* Speculative support for multi-part
bitmap subtitles (#709).
boost::filesystem::create_directories (directory);
_subtitle_asset->write (directory / ("sub_" + _subtitle_asset->id() + ".xml"));
} else {
+ /* All our assets should be the same length; use the picture asset length here
+ as a reference to set the subtitle one.
+ */
+ dynamic_pointer_cast<dcp::SMPTESubtitleAsset>(_subtitle_asset)->set_intrinsic_duration (
+ reel_picture_asset->intrinsic_duration ()
+ );
+
_subtitle_asset->write (
_film->dir (_film->dcp_name ()) / ("sub_" + _subtitle_asset->id() + ".mxf")
);