diff options
Diffstat (limited to 'converter/other/jpeg2000')
-rw-r--r-- | converter/other/jpeg2000/jpeg2ktopam.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/converter/other/jpeg2000/jpeg2ktopam.c b/converter/other/jpeg2000/jpeg2ktopam.c index e6db7658..bfcc0db9 100644 --- a/converter/other/jpeg2000/jpeg2ktopam.c +++ b/converter/other/jpeg2000/jpeg2ktopam.c @@ -99,10 +99,10 @@ readJpc(const char * const inputFilename, if (instream == NULL ) pm_error("cannot open input image file '%s'", inputFilename); } - - if (jas_image_getfmt(instream) != jas_image_strtofmt((char*)"jpc")) + assert(jas_image_lookupfmtbyname("jpc")); + if (jas_image_lookupfmtbyname("jpc")->ops.validate(instream) != 0) pm_error("Input is not JPEG-2000 code stream"); - + options = ""; jasperP = jas_image_decode(instream, jas_image_strtofmt((char*)"jpc"), |