diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-16 14:19:37 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-01-16 14:19:37 +0100 |
| commit | a70a25584e94369874b652dfa5a35656f9c44279 (patch) | |
| tree | 4a00df1288feef8eb50b2b17ebc6e86a72fb7745 | |
| parent | 322eb4d9ddd346af593c3d82674fa71c9d67ff34 (diff) | |
Fix some crashes in tests.
| -rw-r--r-- | test/guess_crop_test.cc | 6 |
1 files 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) ); } |
