From 4f6ba8e7e977f0b591aff13650be67ea8fcc9ad9 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 09:50:19 +0000 Subject: Apply patch libtiff-getimage-64bit.patch patch_name: libtiff-getimage-64bit.patch present_in_specfile: true --- diff --git a/libtiff/tif_getimage.c b/libtiff/tif_getimage.c index 38455fb..5a24b5b 100644 --- a/libtiff/tif_getimage.c +++ b/libtiff/tif_getimage.c @@ -1846,6 +1846,7 @@ DECLAREContigPutFunc(putcontig8bitYCbCr41tile) DECLAREContigPutFunc(putcontig8bitYCbCr22tile) { uint32* cp2; + int32 incr = 2*toskew+w; (void) y; fromskew = (fromskew / 2) * 6; cp2 = cp+w+toskew; @@ -1872,8 +1873,8 @@ DECLAREContigPutFunc(putcontig8bitYCbCr22tile) cp2 ++ ; pp += 6; } - cp += toskew*2+w; - cp2 += toskew*2+w; + cp += incr; + cp2 += incr; pp += fromskew; h-=2; } @@ -1939,6 +1940,7 @@ DECLAREContigPutFunc(putcontig8bitYCbCr21tile) DECLAREContigPutFunc(putcontig8bitYCbCr12tile) { uint32* cp2; + int32 incr = 2*toskew+w; (void) y; fromskew = (fromskew / 2) * 4; cp2 = cp+w+toskew; @@ -1953,8 +1955,8 @@ DECLAREContigPutFunc(putcontig8bitYCbCr12tile) cp2 ++; pp += 4; } while (--x); - cp += toskew*2+w; - cp2 += toskew*2+w; + cp += incr; + cp2 += incr; pp += fromskew; h-=2; }