summaryrefslogtreecommitdiff
path: root/source/fitz/load-jpx.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-04-05 18:57:29 +0800
committerSebastian Rasmussen <sebras@gmail.com>2017-04-05 19:02:21 +0800
commit34e18d127a02146e3415b33c4b67389ce1ddb614 (patch)
tree98ad7e1d31e9f065e16f17eb9a658d5ba748433f /source/fitz/load-jpx.c
parent0628a0b3d166543dbc1c346790014ff39ccf76b8 (diff)
downloadmupdf-34e18d127a02146e3415b33c4b67389ce1ddb614.tar.xz
jpx: Make Luratech decoder glue layer compile.
Diffstat (limited to 'source/fitz/load-jpx.c')
-rw-r--r--source/fitz/load-jpx.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/fitz/load-jpx.c b/source/fitz/load-jpx.c
index d798267b..d01de585 100644
--- a/source/fitz/load-jpx.c
+++ b/source/fitz/load-jpx.c
@@ -111,9 +111,10 @@ jpx_write(unsigned char * pucData, short sComponent, unsigned long ulRow,
fz_jpxd *state = (fz_jpxd *) param;
JP2_Property_Value hstep, vstep;
unsigned char *row;
- int w, h, n, entires, expand;
+ int w, h, n, entries, expand;
JP2_Property_Value x, y, i, bps, sign;
JP2_Property_Value k;
+ unsigned long **palette;
w = state->pix->w;
h = state->pix->h;
@@ -376,10 +377,10 @@ jpx_read_image(fz_context *ctx, fz_jpxd *state, unsigned char *data, size_t size
{
err = JP2_Decompress_GetProp(doc, cJP2_Prop_Bits_Per_Sample, &state->bpss[k], -1, k);
if (err != cJP2_Error_OK)
- fz_throw(ctx, FZ_ERROR_GENERIC, "cannot get bits per sample for compomment %d: %d", k, (int) err);
+ fz_throw(ctx, FZ_ERROR_GENERIC, "cannot get bits per sample for component %ld: %d", k, (int) err);
err = JP2_Decompress_GetProp(doc, cJP2_Prop_Signed_Samples, &state->signs[k], -1, k);
if (err != cJP2_Error_OK)
- fz_throw(ctx, FZ_ERROR_GENERIC, "cannot get signed for compomment %d: %d", k, (int) err);
+ fz_throw(ctx, FZ_ERROR_GENERIC, "cannot get signed for component %ld: %d", k, (int) err);
}
if (state->signs[k])
state->signs[k] = 1 << (state->bpss[k] - 1);