summaryrefslogtreecommitdiff
path: root/indra/llimagej2coj/llimagej2coj.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2025-05-14 11:43:15 +0800
committerErik Kundiman <erik@megapahit.org>2025-05-14 19:22:54 +0800
commit060bebcd3cbb5fbf6045bd777364947a2d8963d3 (patch)
tree8a9905c4e5b724667bf84dc27a8f1c134ddc0a46 /indra/llimagej2coj/llimagej2coj.cpp
parent90a13441c31ffe3e5afc0a2ea1b50b3182241992 (diff)
Revert "Revert to LL's OpenJPEG fork"
This reverts commit 3a36cdf6ebd9d2795bdcd14162f38df568d51796.
Diffstat (limited to 'indra/llimagej2coj/llimagej2coj.cpp')
-rw-r--r--indra/llimagej2coj/llimagej2coj.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/llimagej2coj/llimagej2coj.cpp b/indra/llimagej2coj/llimagej2coj.cpp
index 1c6b9e423c..04b527d783 100644
--- a/indra/llimagej2coj/llimagej2coj.cpp
+++ b/indra/llimagej2coj/llimagej2coj.cpp
@@ -28,9 +28,9 @@
#include "llimagej2coj.h"
// this is defined so that we get static linking.
-#include <openjpeg/openjpeg.h>
-#include <openjpeg/event.h>
-#include <openjpeg/cio.h>
+#include <openjpeg-2.5/openjpeg.h>
+#include <openjpeg-2.5/event.h>
+#include <openjpeg-2.5/cio.h>
#define MAX_ENCODED_DISCARD_LEVELS 5
@@ -617,6 +617,7 @@ public:
for (S32 c = 0; c < numcomps; c++)
{
cmptparm[c].prec = 8;
+ cmptparm[c].bpp = 8;
cmptparm[c].sgnd = 0;
cmptparm[c].dx = parameters.subsampling_dx;
cmptparm[c].dy = parameters.subsampling_dy;