Skip to content

Commit f13c6b5

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/issues/501
1 parent 8b4979e commit f13c6b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: coders/jp2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ static Image *ReadJP2Image(const ImageInfo *image_info,ExceptionInfo *exception)
391391
(jp2_image->comps[0].dy != jp2_image->comps[i].dy) ||
392392
(jp2_image->comps[0].prec != jp2_image->comps[i].prec) ||
393393
(jp2_image->comps[0].sgnd != jp2_image->comps[i].sgnd) ||
394-
(jp2_image->comps[i].data == NULL))
394+
((image->ping == MagickFalse) && (jp2_image->comps[i].data == NULL)))
395395
{
396396
opj_destroy_codec(jp2_codec);
397397
opj_image_destroy(jp2_image);

0 commit comments

Comments
 (0)