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

index ae618ef028a31ca30f4cbdd789d2134db243e155..7fe539620a09ac00428164de33ac1a088ed7647a 100644 (file)
@@ -360,7 +360,7 @@ static Image *ReadJP2Image(const ImageInfo *image_info,ExceptionInfo *exception)
       opj_destroy_codec(jp2_codec);
       ThrowReaderException(DelegateError,"UnableToManageJP2Stream");
     }
-  jp2_stream=opj_stream_create(1024,1);
+  jp2_stream=opj_stream_create(OPJ_J2K_STREAM_CHUNK_SIZE,1);
   opj_stream_set_read_function(jp2_stream,JP2ReadHandler);
   opj_stream_set_write_function(jp2_stream,JP2WriteHandler);
   opj_stream_set_seek_function(jp2_stream,JP2SeekHandler);