]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 31 Jul 2011 01:37:39 +0000 (01:37 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 31 Jul 2011 01:37:39 +0000 (01:37 +0000)
coders/miff.c

index 25d28ccaab1731ff770753664a148ec1c034e9bf..3239a0790de165f0908884a40414c3af969ab5cb 100644 (file)
@@ -2440,8 +2440,6 @@ static MagickBooleanType WriteMIFFImage(const ImageInfo *image_info,
           bzip_info.avail_out=(unsigned int) BZipMaxExtent(packet_size*
             image->columns);
           code=BZ2_bzCompress(&bzip_info,BZ_FINISH);
-          if (code != BZ_OK)
-            status=MagickFalse;
           length=(size_t) (bzip_info.next_out-(char *) compress_pixels);
           if (length != 0)
             {
@@ -2467,8 +2465,6 @@ static MagickBooleanType WriteMIFFImage(const ImageInfo *image_info,
           lzma_info.next_out=compress_pixels;
           lzma_info.avail_out=packet_size*image->columns;
           code=lzma_code(&lzma_info,LZMA_FINISH);
-          if (code != LZMA_OK)
-            status=MagickFalse;
           length=(size_t) (lzma_info.next_out-compress_pixels);
           if (length > 6)
             {
@@ -2494,8 +2490,6 @@ static MagickBooleanType WriteMIFFImage(const ImageInfo *image_info,
           zip_info.avail_out=(uInt) ZipMaxExtent(packet_size*
             image->columns);
           code=deflate(&zip_info,Z_FINISH);
-          if (code != Z_OK)
-            status=MagickFalse;
           length=(size_t) (zip_info.next_out-compress_pixels);
           if (length > 6)
             {