summaryrefslogtreecommitdiff
path: root/libopenjpeg/phix_manager.c
diff options
context:
space:
mode:
authorMickael Savinaud <savmickael@users.noreply.github.com>2011-09-19 16:53:10 +0000
committerMickael Savinaud <savmickael@users.noreply.github.com>2011-09-19 16:53:10 +0000
commitaf7ebd96a0bcf19d4b5af0eb92f2ac88edc5db55 (patch)
tree4f2615ad72d4b08bf442c2ce1d317058ec4e1d29 /libopenjpeg/phix_manager.c
parentac59fd14767291da8cb2905903928da2f8392b21 (diff)
Enhance some new JPIP files about opj_config inclusion and using of free/calloc (credit to Julien Malik)
Diffstat (limited to 'libopenjpeg/phix_manager.c')
-rwxr-xr-xlibopenjpeg/phix_manager.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libopenjpeg/phix_manager.c b/libopenjpeg/phix_manager.c
index 71465ce5..43fa275f 100755
--- a/libopenjpeg/phix_manager.c
+++ b/libopenjpeg/phix_manager.c
@@ -35,8 +35,8 @@
#include <stdlib.h>
#include <math.h>
-#include "indexbox_manager.h"
-#include "cio.h"
+#include "opj_includes.h"
+
/*
* Write faix box of phix
@@ -56,7 +56,7 @@ int write_phix( int coff, opj_codestream_info_t cstr_info, opj_bool EPHused, int
int len, lenp=0, compno, i;
opj_jp2_box_t *box;
- box = (opj_jp2_box_t *)calloc( cstr_info.numcomps, sizeof(opj_jp2_box_t));
+ box = (opj_jp2_box_t *)opj_calloc( cstr_info.numcomps, sizeof(opj_jp2_box_t));
for( i=0;i<2;i++){
if (i) cio_seek( cio, lenp);
@@ -78,7 +78,7 @@ int write_phix( int coff, opj_codestream_info_t cstr_info, opj_bool EPHused, int
cio_seek( cio, lenp+len);
}
- free(box);
+ opj_free(box);
return len;
}