Index: core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/dwt.c |
diff --git a/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/dwt.c b/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/dwt.c |
index 60698e3ffe8d32ff5bb3c46a5d026d89b4928f74..e988818da63d0155a96c2b59cd960f8d53f5e0ac 100644 |
--- a/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/dwt.c |
+++ b/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/dwt.c |
@@ -571,6 +571,7 @@ OPJ_BOOL opj_dwt_decode_tile(opj_tcd_tilecomp_t* tilec, OPJ_UINT32 numres, DWT1D |
h.mem = (OPJ_INT32*) |
opj_aligned_malloc(opj_dwt_max_resolution(tr, numres) * sizeof(OPJ_INT32)); |
if (! h.mem){ |
+ /* FIXME event manager error callback */ |
return OPJ_FALSE; |
} |
@@ -843,6 +844,10 @@ OPJ_BOOL opj_dwt_decode_real(opj_tcd_tilecomp_t* restrict tilec, OPJ_UINT32 numr |
OPJ_UINT32 w = (OPJ_UINT32)(tilec->x1 - tilec->x0); |
h.wavelet = (opj_v4_t*) opj_aligned_malloc((opj_dwt_max_resolution(res, numres)+5) * sizeof(opj_v4_t)); |
+ if (!h.wavelet) { |
+ /* FIXME event manager error callback */ |
+ return OPJ_FALSE; |
+ } |
v.wavelet = h.wavelet; |
while( --numres) { |