Index: core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/t1.c |
diff --git a/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/t1.c b/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/t1.c |
index 0d6c2f606a37558d9d6f0bef1f01d8d43c3d0e24..5646896315a5571822ccfb7dfc887cb65e6fe1cf 100644 |
--- a/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/t1.c |
+++ b/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/t1.c |
@@ -1170,6 +1170,7 @@ OPJ_BOOL opj_t1_allocate_buffers( |
opj_aligned_free(t1->data); |
t1->data = (OPJ_INT32*) opj_aligned_malloc(datasize * sizeof(OPJ_INT32)); |
if(!t1->data){ |
+ /* FIXME event manager error callback */ |
return OPJ_FALSE; |
} |
t1->datasize=datasize; |
@@ -1183,6 +1184,7 @@ OPJ_BOOL opj_t1_allocate_buffers( |
opj_aligned_free(t1->flags); |
t1->flags = (opj_flag_t*) opj_aligned_malloc(flagssize * sizeof(opj_flag_t)); |
if(!t1->flags){ |
+ /* FIXME event manager error callback */ |
return OPJ_FALSE; |
} |
t1->flagssize=flagssize; |
@@ -1207,11 +1209,10 @@ opj_t1_t* opj_t1_create() |
{ |
opj_t1_t *l_t1 = 00; |
- l_t1 = (opj_t1_t*) opj_malloc(sizeof(opj_t1_t)); |
+ l_t1 = (opj_t1_t*) opj_calloc(1,sizeof(opj_t1_t)); |
if (!l_t1) { |
return 00; |
} |
- memset(l_t1,0,sizeof(opj_t1_t)); |
/* create MQC and RAW handles */ |
l_t1->mqc = opj_mqc_create(); |