projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2417eb6
)
This test suddenly just started failing with
author
Carl Hetherington
<cth@carlh.net>
Sun, 15 Oct 2023 22:40:28 +0000
(
00:40
+0200)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 15 Oct 2023 22:40:28 +0000
(
00:40
+0200)
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.
test/writer_test.cc
patch
|
blob
|
history
diff --git
a/test/writer_test.cc
b/test/writer_test.cc
index 7b2a2db005da70e80a7c1700c2c6f1e394dac30b..76e9ddb28799aa46575e78d93bb4388ed50217f5 100644
(file)
--- 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
;
}
}