From 9fc7a5ae33fa42a5d00aa046c79e13087820f606 Mon Sep 17 00:00:00 2001 From: cristy Date: Mon, 8 Apr 2013 13:05:05 +0000 Subject: [PATCH] --- coders/jp2.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/coders/jp2.c b/coders/jp2.c index 2507916bf..b9cc028e2 100644 --- a/coders/jp2.c +++ b/coders/jp2.c @@ -335,9 +335,6 @@ static Image *ReadJP2Image(const ImageInfo *image_info,ExceptionInfo *exception) Image *image; - int - format; - jas_cmprof_t *cm_profile; @@ -400,8 +397,7 @@ static Image *ReadJP2Image(const ImageInfo *image_info,ExceptionInfo *exception) jp2_stream=JP2StreamManager(image); if (jp2_stream == (jas_stream_t *) NULL) ThrowReaderException(DelegateError,"UnableToManageJP2Stream"); - format=jas_image_getfmt(jp2_stream); - jp2_image=jas_image_decode(jp2_stream,format,0); + jp2_image=jas_image_decode(jp2_stream,-1,0); if (jp2_image == (jas_image_t *) NULL) { (void) jas_stream_close(jp2_stream); -- 2.40.0