From: Carl Hetherington Date: Tue, 14 Jul 2015 20:31:24 +0000 (+0100) Subject: Fix test for time rounding change. X-Git-Tag: v2.1.22~14 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=da267d008b9bb122f0617a067021703da5c673bb;p=dcpomatic.git Fix test for time rounding change. --- diff --git a/test/time_calculation_test.cc b/test/time_calculation_test.cc index 6598e4633..de300655d 100644 --- a/test/time_calculation_test.cc +++ b/test/time_calculation_test.cc @@ -31,7 +31,7 @@ static string const xml = "" "FFmpeg" "0" "8" - "/home/c.hetherington/DCP/clapperboard.mp4" + "test/data/red_24.mp4" "2760e03c7251480f7f02c01a907792673784335" "0" "0" @@ -224,7 +224,7 @@ BOOST_AUTO_TEST_CASE (player_time_calculation_test1) BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (0.60)), 0); BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (3.00)), 0); BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (4.60)), 40); - BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (9.75)), 169); + BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (9.75)), 168); /* Position 3s, 1.6s trim, content rate 24, DCP rate 25. Here the trim is in ContentTime, so it's 1.6s at 24fps.