summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2008-02-29 09:36:12 +0000
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2008-02-29 09:36:12 +0000
commit9652def4ded690dd772f260cbb109907358eb900 (patch)
tree1175d5c25cdf2faa5a4a92079a369a9880c963ad
parent6d1f3ecc9f792b8039328fb871b524d61fc0e481 (diff)
Corrected the wrong syntax of calloc()...
-rw-r--r--libopenjpeg/openjpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libopenjpeg/openjpeg.c b/libopenjpeg/openjpeg.c
index b0cd9e36..af2ed6e6 100644
--- a/libopenjpeg/openjpeg.c
+++ b/libopenjpeg/openjpeg.c
@@ -58,7 +58,7 @@ const char* OPJ_CALLCONV opj_version(void) {
}
opj_dinfo_t* OPJ_CALLCONV opj_create_decompress(OPJ_CODEC_FORMAT format) {
- opj_dinfo_t *dinfo = (opj_dinfo_t*)opj_calloc(sizeof(opj_dinfo_t));
+ opj_dinfo_t *dinfo = (opj_dinfo_t*)opj_calloc(1, sizeof(opj_dinfo_t));
if(!dinfo) return NULL;
dinfo->is_decompressor = true;
switch(format) {
@@ -169,7 +169,7 @@ opj_image_t* OPJ_CALLCONV opj_decode_with_info(opj_dinfo_t *dinfo, opj_cio_t *ci
}
opj_cinfo_t* OPJ_CALLCONV opj_create_compress(OPJ_CODEC_FORMAT format) {
- opj_cinfo_t *cinfo = (opj_cinfo_t*)opj_calloc(sizeof(opj_cinfo_t));
+ opj_cinfo_t *cinfo = (opj_cinfo_t*)opj_calloc(1, sizeof(opj_cinfo_t));
if(!cinfo) return NULL;
cinfo->is_decompressor = false;
switch(format) {