Subject: | Incorrect use of Compress::Zlib in CWS (flash 6) size |
Just small patch for Image::Size module, flash MX (compressed flash) part.
Problem is Compress::Zlib::uncompress wants to read complete compressed block and will return empty result otherwise. For swf file larger than internal function's buffer size it will fail to uncompress buffer and thus unable to determine size. Patch in attachment replaces uncompress with inflate, which is streaming realisation and will inflate part of the buffer it able to.
Tested with:
Compress::Zlib 1.39
Image::Size 2.992
perl v5.8.0 built for i386-linux-thread-multi
Message body not shown because it is not plain text.