diff options
Diffstat (limited to 'test/test.cc')
| -rw-r--r-- | test/test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test.cc b/test/test.cc index af005e50..8092df4f 100644 --- a/test/test.cc +++ b/test/test.cc @@ -448,10 +448,10 @@ make_simple_with_smpte_ccaps (boost::filesystem::path path) shared_ptr<dcp::OpenJPEGImage> -black_image () +black_image (dcp::Size size) { - shared_ptr<dcp::OpenJPEGImage> image(new dcp::OpenJPEGImage(dcp::Size(1998, 1080))); - int const pixels = 1998 * 1080; + shared_ptr<dcp::OpenJPEGImage> image(new dcp::OpenJPEGImage(size)); + int const pixels = size.width * size.height; for (int i = 0; i < 3; ++i) { memset (image->data(i), 0, pixels * sizeof(int)); } |
