diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-09-03 17:03:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-03 17:03:54 +0200 |
| commit | e66125fe260deee49fdf6e9978d9bd29871dd5bb (patch) | |
| tree | 15c9d96b8194b193d8996ab4241373c2fbc9fab7 /src/bin | |
| parent | 8db9d25dcf360528fd1e094e4f9274c0635e90cc (diff) | |
| parent | b2751967ecabf8d8856e85ab91e25d4f235e2eb3 (diff) | |
Merge pull request #1164 from sebras/master
openjp2/j2k: Report error if all wanted components are not decoded.
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/jp2/opj_decompress.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/bin/jp2/opj_decompress.c b/src/bin/jp2/opj_decompress.c index 4b9583b7..7eeb0952 100644 --- a/src/bin/jp2/opj_decompress.c +++ b/src/bin/jp2/opj_decompress.c @@ -1571,17 +1571,6 @@ int main(int argc, char **argv) } } - /* FIXME? Shouldn't that situation be considered as an error of */ - /* opj_decode() / opj_get_decoded_tile() ? */ - if (image->comps[0].data == NULL) { - fprintf(stderr, "ERROR -> opj_decompress: no image data!\n"); - opj_destroy_codec(l_codec); - opj_stream_destroy(l_stream); - opj_image_destroy(image); - failed = 1; - goto fin; - } - tCumulative += opj_clock() - t; numDecompressedImages++; |
