From a70a25584e94369874b652dfa5a35656f9c44279 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 16 Jan 2022 14:19:37 +0100 Subject: Fix some crashes in tests. --- test/guess_crop_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/guess_crop_test.cc b/test/guess_crop_test.cc index c26fc5ee4..6fcad952a 100644 --- a/test/guess_crop_test.cc +++ b/test/guess_crop_test.cc @@ -39,7 +39,7 @@ BOOST_AUTO_TEST_CASE (guess_crop_image_test1) auto film = new_test_film2 ("guess_crop_image_test1", { content }); BOOST_CHECK ( - guess_crop(film, content, 0.1, ContentTime::from_frames(content->video->length(), content->video_frame_rate().get())) + guess_crop(film, content, 0.1, ContentTime::from_seconds(5)) == Crop(0, 0, 11, 11) ); } @@ -51,7 +51,7 @@ BOOST_AUTO_TEST_CASE (guess_crop_image_test2) auto film = new_test_film2 ("guess_crop_image_test2", { content }); BOOST_CHECK ( - guess_crop(film, content, 0.1, ContentTime::from_frames(content->video->length(), content->video_frame_rate().get())) + guess_crop(film, content, 0.1, ContentTime::from_seconds(5)) == Crop(0, 0, 22, 22) ); } @@ -63,7 +63,7 @@ BOOST_AUTO_TEST_CASE (guess_crop_image_test3) auto film = new_test_film2 ("guess_crop_image_test3", { content }); BOOST_CHECK ( - guess_crop(film, content, 0.1, ContentTime::from_frames(content->video->length(), content->video_frame_rate().get())) + guess_crop(film, content, 0.1, ContentTime::from_seconds(5)) == Crop(113, 262, 0, 0) ); } -- cgit v1.2.3