]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 3 Jan 2014 01:17:13 +0000 (01:17 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 3 Jan 2014 01:17:13 +0000 (01:17 +0000)
coders/jp2.c

index a4d0dd29ac5c759848fe8133bf81d47c6004aa30..ae618ef028a31ca30f4cbdd789d2134db243e155 100644 (file)
@@ -247,7 +247,7 @@ static OPJ_BOOL JP2SeekHandler(OPJ_OFF_T offset,void *context)
     *image;
 
   image=(Image *) context;
-  return(SeekBlob(image,offset,SEEK_SET) == 0 ? 1 : 0);
+  return(SeekBlob(image,offset,SEEK_SET) < 0 ? 0 : 1);
 }
 
 static OPJ_OFF_T JP2SkipHandler(OPJ_OFF_T length,void *context)