]> granicus.if.org Git - imagemagick/commitdiff
Fix CoderDecoderSeekableNonsense again. Fix Coverity "Dead code" issue.
authorGlenn Randers-Pehrson <glennrp@gmail.com>
Sat, 28 Jan 2017 02:53:16 +0000 (21:53 -0500)
committerGlenn Randers-Pehrson <glennrp@gmail.com>
Sat, 28 Jan 2017 02:53:16 +0000 (21:53 -0500)
coders/png.c

index 2ef45c546b3c9016bdf101d4abdc9d008af42d90..5b5c1a55f71e3da80008113bb2109ddab6057627 100644 (file)
@@ -1975,7 +1975,7 @@ int exif_inf(png_structp png_ptr, unsigned char *source,
 
     /* clean up and return */
     (void)inflateEnd(&strm);
-    return ret == Z_STREAM_END ? inflated_length : -1;
+    return (inflated_length);
 }
 #endif /* zxIf */
 
@@ -7946,7 +7946,7 @@ ModuleExport size_t RegisterPNGImage(void)
 #endif
 
   entry=AcquireMagickInfo("PNG","MNG","Multiple-image Network Graphics");
-  entry->flags|=CoderSeekableStreamFlag;  /* To do: eliminate this. */
+  entry->flags|=CoderDecoderSeekableStreamFlag;  /* To do: eliminate this. */
 
 #if defined(MAGICKCORE_PNG_DELEGATE)
   entry->decoder=(DecodeImageHandler *) ReadMNGImage;