From c72bbbede55fbd064712162cf9f9f9b718ff48bb Mon Sep 17 00:00:00 2001 From: cristy Date: Tue, 21 Jan 2014 22:10:48 +0000 Subject: [PATCH] --- coders/jp2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coders/jp2.c b/coders/jp2.c index a6a183b5e..1eb7b5a41 100644 --- a/coders/jp2.c +++ b/coders/jp2.c @@ -248,7 +248,7 @@ static OPJ_BOOL JP2SeekHandler(OPJ_OFF_T offset,void *context) *image; image=(Image *) context; - return(SeekBlob(image,offset,SEEK_SET) < 0 ? 0 : 1); + return(SeekBlob(image,offset,SEEK_SET) < 0 ? OPJ_FALSE : OPJ_TRUE); } static OPJ_OFF_T JP2SkipHandler(OPJ_OFF_T offset,void *context) @@ -257,7 +257,7 @@ static OPJ_OFF_T JP2SkipHandler(OPJ_OFF_T offset,void *context) *image; image=(Image *) context; - return(SeekBlob(image,offset,SEEK_CUR) < 0 ? 0 : offset); + return(SeekBlob(image,offset,SEEK_CUR) < 0 ? -1 : offset); } static void JP2WarningHandler(const char *message,void *client_data) -- 2.50.1