summaryrefslogtreecommitdiff
path: root/src/bin/jp2/convertpng.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/jp2/convertpng.c')
-rw-r--r--src/bin/jp2/convertpng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/jp2/convertpng.c b/src/bin/jp2/convertpng.c
index 0999edbf..8d117412 100644
--- a/src/bin/jp2/convertpng.c
+++ b/src/bin/jp2/convertpng.c
@@ -211,7 +211,7 @@ opj_image_t *pngtoimage(const char *read_idf, opj_cparameters_t * params)
image->x1 = (OPJ_UINT32)(image->x0 + (width - 1) * (OPJ_UINT32)params->subsampling_dx + 1 + image->x0);
image->y1 = (OPJ_UINT32)(image->y0 + (height - 1) * (OPJ_UINT32)params->subsampling_dy + 1 + image->y0);
- row32s = malloc((size_t)width * nr_comp * sizeof(OPJ_INT32));
+ row32s = (OPJ_INT32 *)malloc((size_t)width * nr_comp * sizeof(OPJ_INT32));
if(row32s == NULL) goto fin;
/* Set alpha channel */