Vincent Povirk : windowscodecs: Handle TIFF' s with RowsPerStrip greater than Height.

Alexandre Julliard julliard at winehq.org
Wed Aug 25 12:35:05 CDT 2010


Module: wine
Branch: master
Commit: c37f6fb196b11cbb03e649e251d74d07ee1dd72a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c37f6fb196b11cbb03e649e251d74d07ee1dd72a

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Sat May 29 11:47:49 2010 -0500

windowscodecs: Handle TIFF's with RowsPerStrip greater than Height.

---

 dlls/windowscodecs/tiffformat.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/windowscodecs/tiffformat.c b/dlls/windowscodecs/tiffformat.c
index fe1fb00..645cfb0 100644
--- a/dlls/windowscodecs/tiffformat.c
+++ b/dlls/windowscodecs/tiffformat.c
@@ -361,6 +361,8 @@ static HRESULT tiff_get_decode_info(TIFF *tiff, tiff_decode_info *decode_info)
     ret = pTIFFGetField(tiff, TIFFTAG_ROWSPERSTRIP, &decode_info->tile_height);
     if (ret)
     {
+        if (decode_info->tile_height > decode_info->height)
+            decode_info->tile_height = decode_info->height;
         decode_info->tile_width = decode_info->width;
         decode_info->tile_stride = ((decode_info->bpp * decode_info->tile_width + 7)/8);
         decode_info->tile_size = decode_info->tile_height * decode_info->tile_stride;




More information about the wine-cvs mailing list