From ccfccd2da772c1a6ed7bc11691967a2fdd0df509 Mon Sep 17 00:00:00 2001 From: cristy Date: Fri, 3 Jan 2014 01:17:13 +0000 Subject: [PATCH] --- coders/jp2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/jp2.c b/coders/jp2.c index a4d0dd29a..ae618ef02 100644 --- a/coders/jp2.c +++ b/coders/jp2.c @@ -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) -- 2.40.0