Untested use of Frame for video/audio content lengths.
[dcpomatic.git] / src / lib / dcp_content.cc
index 51c7f8549ba504fe75a090509893317da526ca9d..0c89685313337b69e1584df648240bd0c7c3d71f 100644 (file)
@@ -141,7 +141,8 @@ DCPContent::full_length () const
 {
        shared_ptr<const Film> film = _film.lock ();
        DCPOMATIC_ASSERT (film);
-       return DCPTime (video_length (), FrameRateChange (video_frame_rate (), film->video_frame_rate ()));
+       FrameRateChange const frc (video_frame_rate (), film->video_frame_rate ());
+       return DCPTime::from_frames (rint (video_length () * frc.factor ()), film->video_frame_rate ());
 }
 
 string