diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-01-02 15:29:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-01-02 20:29:10 +0100 |
| commit | 6cda037324ccaf7a8df142d037fa88520fb80f35 (patch) | |
| tree | ff709633436d000697193aac2e8a5882b24f0f47 /test/scaling_test.cc | |
| parent | afbe4ce5dd551149f931c41bf27c22ef1f55155f (diff) | |
Fix errors when a custom size is given which is larger than the container (#2404).
Diffstat (limited to 'test/scaling_test.cc')
| -rw-r--r-- | test/scaling_test.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/scaling_test.cc b/test/scaling_test.cc index 9a3424506..11b8ae1b7 100644 --- a/test/scaling_test.cc +++ b/test/scaling_test.cc @@ -25,6 +25,7 @@ */ +#include "lib/content_factory.h" #include "lib/dcp_content_type.h" #include "lib/film.h" #include "lib/image_content.h" @@ -93,3 +94,21 @@ BOOST_AUTO_TEST_CASE (scaling_test) /* S: scope image in a scope container */ scaling_test_for (film, imc, 2.38695, "239", "239"); } + + +BOOST_AUTO_TEST_CASE(assertion_failure_when_scaling) +{ + auto content = content_factory("test/data/flat_red.png"); + auto film = new_test_film2("assertion_failure_when_scaling", content); + + content[0]->video->set_custom_size(dcp::Size{3996, 2180}); + film->set_resolution(Resolution::FOUR_K); + + make_and_verify_dcp ( + film, + { + dcp::VerificationNote::Code::MISSING_FFMC_IN_FEATURE, + dcp::VerificationNote::Code::MISSING_FFEC_IN_FEATURE + }); +} + |
