diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2008-02-28 11:26:04 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2008-02-28 11:26:04 +0000 |
| commit | 396cb1e1025d59e679b187aaa2971ea42c4c1c58 (patch) | |
| tree | 6fc9b7bba7346a56379bdd13b7690bee97b70404 /libopenjpeg/jp2.c | |
| parent | ac0cc6df623f02e21fb9eb950e73237c794f4a89 (diff) | |
Removed the J2KViewer module, which has been replaced by OPJViewer and fixed the error handling of j2k_decode in jp2.c, thanks to Robin Cornelius
Diffstat (limited to 'libopenjpeg/jp2.c')
| -rw-r--r-- | libopenjpeg/jp2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libopenjpeg/jp2.c b/libopenjpeg/jp2.c index 14f9493c..b2831cfb 100644 --- a/libopenjpeg/jp2.c +++ b/libopenjpeg/jp2.c @@ -561,6 +561,7 @@ opj_image_t* jp2_decode(opj_jp2_t *jp2, opj_cio_t *cio, opj_codestream_info_t *c image = j2k_decode(jp2->j2k, cio, cstr_info); if(!image) { opj_event_msg(cinfo, EVT_ERROR, "Failed to decode J2K image\n"); + return NULL; } /* Set Image Color Space */ |
