From 5555e580ecbfe6612ac5d18391fc0f6f96b96ac5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 30 Jun 2024 23:45:48 +0200 Subject: Bump libdcp to get FFmpeg 7.0.1. This involves fixing a test whose references were wrong, as far as I can see. The new comment reflects what I think should have been happening the whole time. --- test/video_level_test.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'test/video_level_test.cc') diff --git a/test/video_level_test.cc b/test/video_level_test.cc index 69a8af89e..f210f2add 100644 --- a/test/video_level_test.cc +++ b/test/video_level_test.cc @@ -324,6 +324,7 @@ movie_V (string name) } +/** @return Film containing video-range content set as full-range */ static shared_ptr movie_VoF (string name) @@ -353,6 +354,8 @@ movie_F (string name) film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs()); + BOOST_CHECK(content->video->range() == VideoRange::FULL); + auto range = pixel_range (film, content); BOOST_CHECK_EQUAL (range.first, 0); BOOST_CHECK_EQUAL (range.second, 1023); @@ -546,8 +549,11 @@ BOOST_AUTO_TEST_CASE (movie_VoF_to_V_movie) BOOST_AUTO_TEST_CASE (movie_F_to_V_movie) { auto range = V_movie_range (movie_F("movie_F_to_V_movie")); - BOOST_CHECK_EQUAL (range.first, 4); - BOOST_CHECK_EQUAL (range.second, 1019); + /* A full range input has been converted to video range, so that what was black at 0 + * is not black at 64 (with the corresponding change to white) + */ + BOOST_CHECK_EQUAL(range.first, 64); + BOOST_CHECK_EQUAL(range.second, 963); } -- cgit v1.2.3