X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Freel_writer.cc;h=13d62f86deb6d7e6938dfb512ff3e70c6d1a24cb;hp=da79dfc048dc427478efa6145a9281030e296bfc;hb=a65adcd8375ba5c57cfd0ba8f9a97edd0113a0fd;hpb=6ef3186a7d8288f668185af04946ef42f0cb3fce diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc index da79dfc04..13d62f86d 100644 --- a/src/lib/reel_writer.cc +++ b/src/lib/reel_writer.cc @@ -389,7 +389,14 @@ ReelWriter::create_reel (list const & refs, listduration() == _period.duration().frames_round (_film->video_frame_rate ())); + if (reel_sound_asset->duration() != _period.duration().frames_round (_film->video_frame_rate ())) { + LOG_ERROR ( + "Reel sound asset has length %1 but reel period is %2", + to_string(reel_sound_asset->duration()), + to_string(_period.duration().frames_round(_film->video_frame_rate())) + ); + DCPOMATIC_ASSERT (reel_sound_asset->duration() == _period.duration().frames_round (_film->video_frame_rate ())); + } reel->add (reel_sound_asset); shared_ptr reel_subtitle_asset;