summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-08-27 00:41:38 +0100
committerCarl Hetherington <cth@carlh.net>2017-08-27 00:41:38 +0100
commit429094f009920a14353684e83b4628bfac323617 (patch)
tree44bf3712a088da91c9d0203c24c42b42ce36de97 /test
parent1f95e564b1faec3c12869896101e1188d672a2d6 (diff)
Fix incorrect ISDCF name in some cases (#1118).
Diffstat (limited to 'test')
-rw-r--r--test/isdcf_name_test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/isdcf_name_test.cc b/test/isdcf_name_test.cc
index cc224aab7..f59e02edf 100644
--- a/test/isdcf_name_test.cc
+++ b/test/isdcf_name_test.cc
@@ -93,6 +93,12 @@ BOOST_AUTO_TEST_CASE (isdcf_name_test)
film->set_dcp_content_type (DCPContentType::from_isdcf_name ("XSN"));
BOOST_CHECK_EQUAL (film->isdcf_name(false), "MyNiceFilmWith_XSN-2_F-133_DE-fr_US-R_4K_DI_20140704_PP_SMPTE_OV");
+ /* And it should always be numeric */
+
+ content->video->set_scale (VideoContentScale (Ratio::from_id ("239")));
+ BOOST_CHECK_EQUAL (film->isdcf_name(false), "MyNiceFilmWith_XSN-2_F-239_DE-fr_US-R_4K_DI_20140704_PP_SMPTE_OV");
+ content->video->set_scale (VideoContentScale (Ratio::from_id ("133")));
+
/* Test 3D */
film->set_three_d (true);