Replace Time::frames with Time::frames_round and Time::frames_floor.
[dcpomatic.git] / test / seek_zero_test.cc
index 3aef113734fbebfd7092d2aa121a28808bf40819..5f870ba41f7605ceae92d2e28acb3cc1dcd2e37d 100644 (file)
@@ -48,7 +48,7 @@ BOOST_AUTO_TEST_CASE (seek_zero_test)
        film->examine_and_add_content (content);
        wait_for_jobs ();
        content->set_scale (VideoContentScale (Ratio::from_id ("185")));
-       
+
        /* Work out the first video frame index that we will be given, taking into account
         * the difference between first video and first audio.
         */
@@ -57,7 +57,7 @@ BOOST_AUTO_TEST_CASE (seek_zero_test)
                video_delay = ContentTime ();
        }
 
-       Frame const first_frame = video_delay.round_up (content->video_frame_rate ()).frames (content->video_frame_rate ());
+       Frame const first_frame = video_delay.round_up (content->video_frame_rate ()).frames_round (content->video_frame_rate ());
 
        FFmpegDecoder decoder (content, film->log());
        list<ContentVideo> a = decoder.get_video (first_frame, true);