summaryrefslogtreecommitdiff
path: root/libopenjpeg/thix_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/thix_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/thix_manager.c')
-rwxr-xr-xlibopenjpeg/thix_manager.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libopenjpeg/thix_manager.c b/libopenjpeg/thix_manager.c
index bdedc30c..8534d52a 100755
--- a/libopenjpeg/thix_manager.c
+++ b/libopenjpeg/thix_manager.c
@@ -36,8 +36,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include "indexbox_manager.h"
-#include "cio.h"
+#include "opj_includes.h"
/*
* Write tile-part headers mhix box
@@ -57,7 +56,7 @@ int write_thix( int coff, opj_codestream_info_t cstr_info, opj_cio_t *cio)
opj_jp2_box_t *box;
lenp = 0;
- box = (opj_jp2_box_t *)calloc( cstr_info.tw*cstr_info.th, sizeof(opj_jp2_box_t));
+ box = (opj_jp2_box_t *)opj_calloc( cstr_info.tw*cstr_info.th, sizeof(opj_jp2_box_t));
for ( i = 0; i < 2 ; i++ ){
if (i)
@@ -79,7 +78,7 @@ int write_thix( int coff, opj_codestream_info_t cstr_info, opj_cio_t *cio)
cio_seek( cio, lenp+len);
}
- free(box);
+ opj_free(box);
return len;
}
@@ -89,7 +88,6 @@ int write_tilemhix( int coff, opj_codestream_info_t cstr_info, int tileno, opj_c
int i;
opj_tile_info_t tile;
opj_tp_info_t tp;
- int marknum;
int len, lenp;
opj_marker_info_t *marker;