diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-10-16 00:40:28 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-10-16 00:40:28 +0200 |
| commit | e2dfb7e571fa80e6216dcedb16e5eaca3c5648d4 (patch) | |
| tree | b5be92fbaf08405b7f8a784026ea32d3be9af0b9 | |
| parent | 2417eb677fc9cb83a665c3afc772386abbd07888 (diff) | |
This test suddenly just started failing with
opj_int_fix_mul: Assertion `(temp >> 13) <= (OPJ_INT64)0x7FFFFFFF' failed.
which is odd - why now?
Anywhere here we limit the OpenJPEG image values to what I think is
the "legal" range.
| -rw-r--r-- | test/writer_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/writer_test.cc b/test/writer_test.cc index 7b2a2db00..76e9ddb28 100644 --- a/test/writer_test.cc +++ b/test/writer_test.cc @@ -71,7 +71,7 @@ BOOST_AUTO_TEST_CASE (interrupt_writer) auto image = make_shared<dcp::OpenJPEGImage>(size); for (int i = 0; i < 3; ++i) { for (int j = 0; j < (size.width * size.height); ++j) { - image->data(i)[j] = rand(); + image->data(i)[j] = rand() % 4095; } } |
