commit | 4d4199354bcbf4bd1ce421f391b9f6f233889c02 | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Fri Jan 03 19:18:49 2014 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Fri Jan 03 19:18:49 2014 +0000 |
tree | f458ce31d1c80405a5f0f37d10b4428b7f7351bb | |
parent | 0f86a125377702f5d311173bd4caf54342b890b7 [diff] [blame] |
diff --git a/coders/jp2.c b/coders/jp2.c index 7fe5396..ec4aac1 100644 --- a/coders/jp2.c +++ b/coders/jp2.c
@@ -256,9 +256,7 @@ *image; image=(Image *) context; - if (DiscardBlobBytes(image,(size_t) length) == MagickFalse) - return(0); - return(length); + return(SeekBlob(image,offset,SEEK_CUR) < 0 ? 0 : offset); } static void JP2WarningHandler(const char *message,void *client_data)