summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-05-31 00:25:25 +0200
committerCarl Hetherington <cth@carlh.net>2021-05-31 00:25:25 +0200
commit5b27212aa670a5555b64d2123bb70673987564b4 (patch)
tree2092ef20424d9d8ba125df956b4295a8de5e8d6b /test
parent7efb39f90c0e70d779fb5f19290851f366f01315 (diff)
Allow any ratio to appear in the ISDCF name as an interior aspect ratio (#2030).
Diffstat (limited to 'test')
-rw-r--r--test/isdcf_name_test.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/isdcf_name_test.cc b/test/isdcf_name_test.cc
index a41bf84b3..8fc2c8f64 100644
--- a/test/isdcf_name_test.cc
+++ b/test/isdcf_name_test.cc
@@ -126,6 +126,13 @@ BOOST_AUTO_TEST_CASE (isdcf_name_test)
content->video->set_custom_ratio (1.9);
BOOST_CHECK_EQUAL (film->isdcf_name(false), "MyNiceFilmWith_XSN-2_F-190_DE-fr_US-R_MOS_4K_DI_20140704_PPF_SMPTE_OV");
+
+ /* And it should be possible to set any 'strange' ratio, not just the ones we know about */
+ content->video->set_custom_ratio (2.2);
+ BOOST_CHECK_EQUAL (film->isdcf_name(false), "MyNiceFilmWith_XSN-2_F-220_DE-fr_US-R_MOS_4K_DI_20140704_PPF_SMPTE_OV");
+ content->video->set_custom_ratio (1.95);
+ BOOST_CHECK_EQUAL (film->isdcf_name(false), "MyNiceFilmWith_XSN-2_F-195_DE-fr_US-R_MOS_4K_DI_20140704_PPF_SMPTE_OV");
+
content->video->set_custom_ratio (1.33);
/* Test 3D */