summaryrefslogtreecommitdiff
path: root/libopenjpeg/phix_manager.c
diff options
context:
space:
mode:
authorMickael Savinaud <savmickael@users.noreply.github.com>2011-10-06 09:36:22 +0000
committerMickael Savinaud <savmickael@users.noreply.github.com>2011-10-06 09:36:22 +0000
commit73106fe839a517a7faff3a9b9c1e100bbd99d08c (patch)
tree8bae38dd81b1e4d47c3e7758cf6ac63ae157444f /libopenjpeg/phix_manager.c
parent40b4ecfaecce0bc957f9651942d10731103964c8 (diff)
[1.5] enhance some new JPIP files with opj_config inclusion and using of opj_free/opj_calloc functions (credit to Julien Malik)
Diffstat (limited to 'libopenjpeg/phix_manager.c')
-rwxr-xr-xlibopenjpeg/phix_manager.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libopenjpeg/phix_manager.c b/libopenjpeg/phix_manager.c
index 71465ce5..135268ca 100755
--- a/libopenjpeg/phix_manager.c
+++ b/libopenjpeg/phix_manager.c
@@ -35,8 +35,7 @@
#include <stdlib.h>
#include <math.h>
-#include "indexbox_manager.h"
-#include "cio.h"
+#include "opj_includes.h"
/*
* Write faix box of phix
@@ -56,7 +55,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 +77,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;
}