Untested use of Frame for video/audio content lengths.
[dcpomatic.git] / src / lib / sndfile_content.cc
index 9f9ea351e2a94e0f93a35d99c5075bf22c171b01..363c11b094dae6f0b7de869f32984229d21ad383 100644 (file)
@@ -93,6 +93,7 @@ SndfileContent::full_length () const
 {
        shared_ptr<const Film> film = _film.lock ();
        DCPOMATIC_ASSERT (film);
-       return DCPTime (audio_length(), film->active_frame_rate_change (position ()));
+       FrameRateChange const frc = film->active_frame_rate_change (position ());
+       return DCPTime::from_frames (audio_length() / frc.speed_up, film->audio_frame_rate ());
 }